eqdict
v1.0.2
Published
A dictionary / Record / JavaScript object can be generated from a string with Equal (=) sign
Downloads
1
Readme
eqdict
A dictionary / Record / JavaScript object can be generated from a string with Equal (=) sign. For example,
'a=1 b="x y z"'
=>{ a: '1', b: 'x y z' }
Usage
import eqdict from 'eqdict'
console.log(eqdict('a=1 b="x y z"'))
Usage on the browser
<script src="https://unpkg.com/eqdict@:version/umd/index.min.js"></script>
<script>
console.log(eqdict('a=1 b="x y z"'))
</script>