npm.io
2.0.2 • Published 5 years ago

moredots

Licence
MIT
Version
2.0.2
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
1

moredots NPM version

Recursively converts objects to dot notation.

npm install moredots

Usage

const moredots = require("moredots");

const result = moredots({
  foo: {
    bar: {
      baz: 42,
    },
  },
});

// result = {
//   'foo.bar.baz': 42
// }

Getting started

git clone https://github.com/Zertz/moredots.git
yarn
yarn test