node-dotify

1.1.0 • Public • Published

node-dotify

Build Status

Convert Object

{
  status: 'success',
  name: {
    first: 'Glenn',
    last: 'Geenen'
  }
}

to (Dot notation object)

{
  status: 'success',
  'name.first': 'Glenn',
  'name.last': 'Geenen'
}

usage

var dotify = require('node-dotify');

var obj = {
  status: 'success',
  name: {
    first: 'Glenn',
    last: 'Geenen'
  }
};

var result = dotify(obj);

Package Sidebar

Install

npm i node-dotify

Weekly Downloads

353

Version

1.1.0

License

MIT

Unpacked Size

5.53 kB

Total Files

7

Last publish

Collaborators

  • glenngeenen