Skip to content

ntharim/to-dot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

to-dot

Convert object to 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

About

Convert object to dot notation

Resources

Stars

Watchers

Forks

Packages

No packages published