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);

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.0350latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.0350
1.0.23
1.0.10
1.0.00

Package Sidebar

Install

npm i node-dotify

Weekly Downloads

324

Version

1.1.0

License

MIT

Unpacked Size

5.53 kB

Total Files

7

Last publish

Collaborators

  • glenngeenen