Storage in a string - or something like that. I needed a way to pass around a light way set of key values without using JSON. The values will never be a complex object, so serializing them like a URL seemed like a half decent way to go
It turns active=true&tacos=good
in to { active: true, tacos: 'good' }
and vice versa.
npm install string-store --save
let StringStore = require('string-store');
let config = new StringStore('name=brandon&active=true');
console.log(config.get('active'));
config.set('age',40);
config.set('family',4);
config.remove('age');
config.get('family'); // output 4
config.toString(); // name=brandon&active=true&family=4
config.toObject(); // outpus
{
name : 'brandon',
active : true,
family: 4
}