# tableize-object

> Tableize an object by flattening its keys into object paths (dot-notation).

Latest version **0.1.0** (published 2016-04-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install tableize-object
pnpm add tableize-object
yarn add tableize-object
bun add tableize-object
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-04-07 |
| First published | 2016-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Jon Schlinkert |
| Maintainers | jonschlinkert |
| Keywords | dot, dot-notation, flatten, keys, notation, object, paths, stringify, tableize |

## Links

- npm: https://www.npmjs.com/package/tableize-object
- Repository: https://github.com/jonschlinkert/tableize-object
- Issues: https://github.com/jonschlinkert/tableize-object/issues
- npm.io page: https://npm.io/package/tableize-object

## Dependencies (1)

- [isobject](https://npm.io/package/isobject.md) ^2.0.0

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads
- [tg-resolve](https://npm.io/package/tg-resolve.md) — 176 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2016-04-07

## README

# tableize-object [![NPM version](https://img.shields.io/npm/v/tableize-object.svg?style=flat)](https://www.npmjs.com/package/tableize-object) [![NPM downloads](https://img.shields.io/npm/dm/tableize-object.svg?style=flat)](https://npmjs.org/package/tableize-object) [![Build Status](https://img.shields.io/travis/jonschlinkert/tableize-object.svg?style=flat)](https://travis-ci.org/jonschlinkert/tableize-object)

> Tableize an object by flattening its keys into object paths (dot-notation).

## Install

Install with [npm](https://www.npmjs.com/):

```sh
$ npm install tableize-object --save
```

This is a simplified version of [tableize](https://github.com/segmentio/tableize), which also lower-cases keys and replaces spaces and dashes in keys with underscores. This library doesn't modify keys.

## Usage

```js
var tableize = require('tableize-object');

var obj = {
  foo: {
    bar: {
      baz: 'qux',
      fez: 'foo'
    },
    a: 'b',
    c: 'b',
    d: 'b',
  }
};

console.log(tableize(obj));
// results in:
//{ 'foo.bar.baz': 'qux',
//  'foo.bar.fez': 'foo',
//  'foo.a': 'b',
//  'foo.c': 'b',
//  'foo.d': 'b' }
```

## Related projects

You might also be interested in these projects:

* [collapse-object](https://www.npmjs.com/package/collapse-object): Collapse an object into a string using the syntax from expand-object. This syntax is pretty… [more](https://www.npmjs.com/package/collapse-object) | [homepage](https://github.com/jonschlinkert/collapse-object)
* [expand-object](https://www.npmjs.com/package/expand-object): Expand a string into a JavaScript object using a simple notation. Use the CLI or… [more](https://www.npmjs.com/package/expand-object) | [homepage](https://github.com/jonschlinkert/expand-object)
* [get-value](https://www.npmjs.com/package/get-value): Use property paths (`a.b.c`) to get a nested value from an object. | [homepage](https://github.com/jonschlinkert/get-value)
* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject)
* [set-value](https://www.npmjs.com/package/set-value): Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths. | [homepage](https://github.com/jonschlinkert/set-value)
* [stringify-keys](https://www.npmjs.com/package/stringify-keys): Build an array of key paths from an object. | [homepage](https://github.com/doowb/stringify-keys)

## Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/tableize-object/issues/new).

## Building docs

Generate readme and API documentation with [verb](https://github.com/verbose/verb):

```sh
$ npm install verb && npm run docs
```

Or, if [verb](https://github.com/verbose/verb) is installed globally:

```sh
$ verb
```

## Running tests

Install dev dependencies:

```sh
$ npm install -d && npm test
```

## Author

**Jon Schlinkert**

Follow me on GitHub or Twitter for updates about tableize-object and my other libraries:

* [github/jonschlinkert](https://github.com/jonschlinkert)
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)

## License

Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT license](https://github.com/jonschlinkert/tableize-object/blob/master/LICENSE).

***

_This file was generated by [verb](https://github.com/verbose/verb), v, on April 07, 2016._

---
_Source: https://npm.io/package/tableize-object · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
