Skip to content
Convert javascript object to dot notation object
JavaScript
Branch: master
Clone or download

Latest commit

Latest commit 74a2744 Oct 9, 2015

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore first commit Aug 20, 2015
.jscsrc
.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);
You can’t perform that action at this time.