dotpath-object-create
v0.0.1
Published
create an object from a dotpath string
Downloads
7
Readme
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 } } }