deep-string-to-object
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

deep-string-to-object

Convert a string separated by dots into a JavaScript object.

Install

npm install --save deep-string-to-object

Running tests

npm install
npm run test

Usage

var deepConvert = require('deep-string-to-object')

var chain = "a.b.c.d.e";
var value = 12;

deepConvert(chain, value)


> { a: { b: { c: { d: { e: 12 } } } } }

Author

Ilyass Mabrouk

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    1
  • 0.1.0
    0

Package Sidebar

Install

npm i deep-string-to-object

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

2.92 kB

Total Files

5

Last publish

Collaborators

  • ilyassmabrouk