dotdef

Dot defined objects

Usage no npm install needed!

<script type="module">
  import dotdef from 'https://cdn.skypack.dev/dotdef';
</script>

README

dotdef Build Status Greenkeeper badge

Dot definition for objects

Install

Use it as an npm package:

npm install dotdef

Usage

const dotdef = require('dotdef');

const myObj = dotdef({
  'foo.bar.baz': 123,
  'foo.bar.quux': 456
}); // { foo: { bar: { baz: 123, quux: 456 } } }

License

MIT