dotize

Convert complex Js object to dot notation Js object

Usage no npm install needed!

<script type="module">
  import dotize from 'https://cdn.skypack.dev/dotize';
</script>

README

npm version Bower version Build Status codecov

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

bower

bower install dotize

tests

npm install -g mocha
mocha test/test.js