/dotize

Convert complex js object to dot notation js object

Primary LanguageJavaScriptMIT LicenseMIT

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 install dotize

bower

bower install dotize
npm install -g mocha
mocha test/test.js