serialize a object to one level
$ npm install --save object-in-one-level
var objectInOneLevel = require('object-in-one-level');
var obj = {
a: {
b: {
c: 'd'
}
}
};
var oneLevel = objectInOneLevel(obj);
// oneLevel['a.b.c'] === 'd'
MIT © Thiago Rodrigues