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

Package Sidebar

Install

npm i deep-string-to-object

Weekly Downloads

23

Version

0.1.1

License

MIT

Unpacked Size

2.92 kB

Total Files

5

Last publish

Collaborators

  • ilyassmabrouk