dotpath-object-create

0.0.1 • Public • Published

dotpath-object-create

Create an object from a dotpath string.

npm i --save dotpath-object-create

Usage

const createObject = require('dotpath-object-create')

createObject('machdep.xcpm.io_control_disengages')
// { machdep: { xcpm: { io_control_disengages: {} } } }

createObject('machdep.xcpm.io_control_disengages', 71)
// { machdep: { xcpm: { io_control_disengages: 71 } } }

Readme

Keywords

none

Package Sidebar

Install

npm i dotpath-object-create

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • rogerbf