Skip to content
/ dotize Public

Convert complex js object to dot notation js object

License

Notifications You must be signed in to change notification settings

vardars/dotize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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