Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.17 KB

README.md

File metadata and controls

51 lines (37 loc) · 1.17 KB

Unflatten

NPM version Build Status Coverage Status XO code style


Unflatten a flat object

Install

$ npm i -S @tadashi/unflatten-object

Usage

import unflatten from '@tadashi/unflatten-object'

const unflat = unflatten({
  'a.b.c': 'foo',
  'a.d': 'bar'
})
// => {
//      a: {
//        b: {
//          c: 'foo'
//        },
//        d: 'bar'
//      }
//    }

License

MIT © Thiago Lagden