Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

moredots

Zertz7kMIT2.0.2TypeScript support: included

Recursively converts objects to dot notation.

dot, notation, path, object, dotify

readme

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

changelog

Changelog

2.0.0

  • removed support for Node < 12

    1.0.0

  • removed support for Node < 4