{"_id":"tableize-object","_rev":"225742","name":"tableize-object","description":"Tableize an object by flattening its keys into object paths (dot-notation).","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T15:42:38.000Z","created":"2016-04-07T09:28:19.101Z","0.1.0":"2016-04-07T09:28:19.101Z"},"users":{"caoqi":true},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/tableize-object.git"},"versions":{"0.1.0":{"name":"tableize-object","description":"Tableize an object by flattening its keys into object paths (dot-notation).","version":"0.1.0","homepage":"https://github.com/jonschlinkert/tableize-object","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/tableize-object.git"},"bugs":{"url":"https://github.com/jonschlinkert/tableize-object/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"isobject":"^2.0.0"},"devDependencies":{"gulp-format-md":"*","mocha":"*"},"keywords":["dot","dot-notation","flatten","keys","notation","object","paths","stringify","tableize"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["stringify-keys","isobject","expand-object","collapse-object","get-value","set-value"]},"reflinks":["verb","tableize"],"lint":{"reflinks":true}},"_id":"tableize-object@0.1.0","_shasum":"7c29e0133b27d48b56b9e76d3a28d241df1b3a24","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"7c29e0133b27d48b56b9e76d3a28d241df1b3a24","size":2778,"noattachment":false,"key":"/tableize-object/-/tableize-object-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tableize-object/download/tableize-object-0.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tableize-object-0.1.0.tgz_1460021296760_0.3397687852848321"},"directories":{},"publish_time":1460021299101,"_cnpm_publish_time":1460021299101,"_hasShrinkwrap":false}},"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)\n\n> Tableize an object by flattening its keys into object paths (dot-notation).\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install tableize-object --save\n```\n\nThis 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.\n\n## Usage\n\n```js\nvar tableize = require('tableize-object');\n\nvar obj = {\n  foo: {\n    bar: {\n      baz: 'qux',\n      fez: 'foo'\n    },\n    a: 'b',\n    c: 'b',\n    d: 'b',\n  }\n};\n\nconsole.log(tableize(obj));\n// results in:\n//{ 'foo.bar.baz': 'qux',\n//  'foo.bar.fez': 'foo',\n//  'foo.a': 'b',\n//  'foo.c': 'b',\n//  'foo.d': 'b' }\n```\n\n## Related projects\n\nYou might also be interested in these projects:\n\n* [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)\n* [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)\n* [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)\n* [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)\n* [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)\n* [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)\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/tableize-object/issues/new).\n\n## Building docs\n\nGenerate readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install verb && npm run docs\n```\n\nOr, if [verb](https://github.com/verbose/verb) is installed globally:\n\n```sh\n$ verb\n```\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n## Author\n\n**Jon Schlinkert**\n\nFollow me on GitHub or Twitter for updates about tableize-object and my other libraries:\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/tableize-object/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v, on April 07, 2016._","_attachments":{},"homepage":"https://github.com/jonschlinkert/tableize-object","bugs":{"url":"https://github.com/jonschlinkert/tableize-object/issues"},"license":"MIT"}