git ssb

1+

cel / wpa-conf-codec



Tree:
📄README.md
📁bin
📄index.js
📁lib
📄package.json
📁test
README.md

wpa-conf-codec

Convert wpa_supplicant.conf <-> JSON

var fs = require('fs')
var wpa = require('wpa-conf-codec')

var conf = fs.readFileSync('/etc/wpa_supplicant/wpa_supplicant.conf')
console.log(conf.decode(conf))
console.log(conf.encode(conf.decode(conf)))

API

wpa.decode(str): obj

Decode wpa config

wpa.encode(obj): str

Encode wpa config

CLI

A command-line program is provided that converts between a config in wpa_supplicant.conf format and JSON format, using standard I/O.

License

Copyright (c) 2017 @f/6sQ6d...

Usage of the works is permitted provided that this instrument is retained with the works, so that any entity that uses the works is notified of this instrument.

DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.

Built with git-ssb-web