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)))
License
Copyright (c) 2017 @f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519
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.