0.0.4 • Published 9 years ago

to-dot v0.0.4

Weekly downloads
14
License
-
Repository
github
Last release
9 years ago

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

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago