Read string as JS object
$ npm install --save object-string
const objectString = require('object-string')
objectString('foo,bar')
//=> ['foo', 'bar']
objectString('foo:bar')
//=> {foo: 'bar'}
objectString('foo:bar,hoo:yah')
//=> {foo: 'bar', hoo: 'yah'}
MIT © EGOIST