Zertz / moredots

Recursively converts objects to dot notation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Recursively converts objects to dot notation.

License:MIT License


Languages

Language:JavaScript 100.0%