1.2.1 • Published 4 years ago

dot-notate v1.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

dot-notate

dot-notate converts an object into a one dimensional object with its attributes keys separated by . or another separator.

Examples

Default separator

var dotNotate = require('dot-notate');

console.log(dotNotate({ this: { is: 'an example' } }));

The above code will result in the following object:

{
    "this.is": "an example"
}

Custom separator

var dotNotate = require('dot-notate');

console.log(dotNotate({ this: { is: 'an example' } }, '|'));

The above code will result in the following object:

{
    "this|is": "an example"
}

Installation

npm install --save dot-notate

Author

Johannes Schlicker

License

This project is licensed under the MIT License.

1.2.0

4 years ago

1.2.1

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago