https://github.com/gilbarbara/object-to-dot-notation
Convert simple objects to dot notation
https://github.com/gilbarbara/object-to-dot-notation
Last synced: 9 months ago
JSON representation
Convert simple objects to dot notation
- Host: GitHub
- URL: https://github.com/gilbarbara/object-to-dot-notation
- Owner: gilbarbara
- Created: 2017-11-27T23:44:29.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-12-21T17:56:39.000Z (about 5 years ago)
- Last Synced: 2025-04-10T14:34:27.858Z (9 months ago)
- Language: TypeScript
- Size: 235 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# object-to-dot-notation
[](https://www.npmjs.com/package/object-to-dot-notation) [](https://travis-ci.com/gilbarbara/object-to-dot-notation) [](https://codeclimate.com/github/gilbarbara/object-to-dot-notation/maintainability) [](https://codeclimate.com/github/gilbarbara/object-to-dot-notation/test_coverage)
Convert simple objects to dot notation
### Setup
```bash
npm i object-to-dot-notation
```
```javascript
const dotNotation = require('object-to-dot-notation');
const path = dotNotation({
name: {
state: {
on: {
red: "walk"
}
}
}
});
console.log(path) // name.state.on.red.walk
```