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

/dotpath-object-create/

    Package Sidebar

    Install

    npm i dotpath-object-create

    Weekly Downloads

    4

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • rogerbf