@ladjs/node-dotify
v3.0.0
Published
Convert javascript object to dot notation object
Downloads
110
Readme
node-dotify
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);