Skip to content

Turn `a=b 'c'="d"` into a dictonary. A base utility for `indent-utils` and `hyperpug`

License

Notifications You must be signed in to change notification settings

patarapolw/eqdict

Repository files navigation

eqdict

npm version

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' }

A base utility for indent-utils and hyperpug

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>

About

Turn `a=b 'c'="d"` into a dictonary. A base utility for `indent-utils` and `hyperpug`

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published