object-in-one-level

1.0.0 • Public • Published

object-in-one-level NPM version Build Status Dependency Status Coverage percentage

serialize a object to one level

Installation

$ npm install --save object-in-one-level

Usage

var objectInOneLevel = require('object-in-one-level');
var obj = {
  a: {
    b: {
      c: 'd'
    }
  }
};
var oneLevel = objectInOneLevel(obj);

// oneLevel['a.b.c'] === 'd'

License

MIT © Thiago Rodrigues

Readme

Keywords

none

Package Sidebar

Install

npm i object-in-one-level

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • trsouz