Convert javascript object to dot notation object
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Latest commit 74a2744 Oct 9, 2015
Permalink
Failed to load latest commit information.
test first commit Aug 20, 2015
.gitignore first commit Aug 20, 2015
.jscsrc first commit Aug 20, 2015
.jshintrc first commit Aug 20, 2015
.travis.yml add travis ci Aug 20, 2015
README.md Merge branch 'master' of https://github.com/GeenenTijd/dotify Aug 20, 2015
dotify.js first commit Aug 20, 2015
package.json bump version Oct 9, 2015

README.md

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