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

Package detail

dotize

vardars11kApache-2.00.6.0TypeScript support: included

Convert complex Js object to dot notation Js object

js, json, dot-notation, convert, backward

readme

npm version GitHub version

dotize =

Convert (Complex js object)

{
  "status": "success",
  "auth": {
    "code": 123,
    "name": "qwerty asdfgh"
  }
}

to (Dot notation js object)

{
  "status": "success",
  "auth.code": 123,
  "auth.name": "qwerty asdfgh"
}

npm = npm install dotize

tests =

# checkout project and
npm install && npm test

use in browser =

https://vardars.github.io/dotize/