Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nescalante/dotdef
https://github.com/nescalante/dotdef
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nescalante/dotdef
- Owner: nescalante
- License: mit
- Created: 2016-12-16T17:43:24.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-30T19:32:01.000Z (over 6 years ago)
- Last Synced: 2024-11-10T04:14:13.426Z (about 1 month ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: License
Awesome Lists containing this project
README
# dotdef [![Build Status](https://travis-ci.org/nescalante/dotdef.svg?branch=master)](https://travis-ci.org/nescalante/dotdef) [![Greenkeeper badge](https://badges.greenkeeper.io/nescalante/dotdef.svg)](https://greenkeeper.io/)
> Dot definition for objects
# Install
Use it as an npm package:
```shell
npm install dotdef
```# Usage
```js
const dotdef = require('dotdef');const myObj = dotdef({
'foo.bar.baz': 123,
'foo.bar.quux': 456
}); // { foo: { bar: { baz: 123, quux: 456 } } }
```# License
MIT