Recursively converts objects to dot notation.
npm install moredots
const moredots = require("moredots"); const result = moredots({ foo: { bar: { baz: 42, }, }, }); // result = { // 'foo.bar.baz': 42 // }
git clone https://github.com/Zertz/moredots.git yarn yarn test