object-to-dot-notation
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

object-to-dot-notation

NPM version build status Maintainability Test Coverage

Convert simple objects to dot notation

Setup

npm i object-to-dot-notation
const dotNotation = require('object-to-dot-notation');

const path = dotNotation({
  name: {
	state: {
	  on: {
		red: "walk"
	  }
	}
  }
});

console.log(path) // name.state.on.red.walk

Package Sidebar

Install

npm i object-to-dot-notation

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

14.4 kB

Total Files

16

Last publish

Collaborators

  • gilbarbara