to-dot

0.0.4 • Public • Published

to-dot

Convert object to dot notation.

var toDot = require('to-dot');
 
var user = { 
  name: { 
    first: 'Joe', 
    last: 'M' 
  } 
};
 
console.log(toDot(user));
/* 
{
  'name.first': 'Joe',
  'name.last': 'M'
}
*/

Installation

$ npm install to-dot

API

toDot(obj)

return converted dot-notation object from obj.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i to-dot

Weekly Downloads

2

Version

0.0.4

License

none

Last publish

Collaborators

  • nthtran