eqdict
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

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>

Readme

Keywords

none

Package Sidebar

Install

npm i eqdict

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

9.81 kB

Total Files

8

Last publish

Collaborators

  • patarapolw