1.0.7 • Published 4 years ago

flattern v1.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

flattern, flat objects

NPM version Build Status Coveralls Status

Get a flat version of the object

Installation

npm install flattern or yarn add flattern

Test the package

npm run test or yarn test

Usage

Example usage:

new Flattern({
    a: 1,
    b: 2,
    c: [3, 4],
    d: { e: 5, f: 6 },
    g: { h: { i: 7 } }
})

The response:

{
    a: 1,
    b: 2,
    "c.0": 3,
    "c.1": 4,
    "d.e": 5,
    "d.f": 6,
    "g.h.i": 7
}
1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago