node-dotify
v1.1.0
Published
Convert javascript object to dot notation object
Downloads
1,043
Maintainers
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);