{ "_id": "to-object-path", "_rev": "3-1c2620f06d374b88d7df2d378759a174", "name": "to-object-path", "description": "Create an object path from a list or array of strings.", "dist-tags": { "latest": "0.3.0" }, "versions": { "0.1.0": { "name": "to-object-path", "description": "Create an object path from a list or array of strings.", "version": "0.1.0", "homepage": "https://github.com/jonschlinkert/to-object-path", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/to-object-path.git" }, "bugs": { "url": "https://github.com/jonschlinkert/to-object-path/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": {}, "devDependencies": { "base-methods": "^0.2.1", "mocha": "*" }, "keywords": [], "verb": { "related": { "list": [ "get-value", "set-value", "has-value", "unset-value" ] } }, "_id": "to-object-path@0.1.0", "_shasum": "27746389db4eb874a02baae0286d3e91ffafae95", "_from": ".", "_npmVersion": "2.10.1", "_nodeVersion": "0.12.4", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "27746389db4eb874a02baae0286d3e91ffafae95", "tarball": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.1.0.tgz" }, "directories": {} }, "0.2.0": { "name": "to-object-path", "description": "Create an object path from a list or array of strings.", "version": "0.2.0", "homepage": "https://github.com/jonschlinkert/to-object-path", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/to-object-path.git" }, "bugs": { "url": "https://github.com/jonschlinkert/to-object-path/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": { "arr-flatten": "^1.0.1", "is-arguments": "^1.0.2" }, "devDependencies": { "base-methods": "^0.3.1", "mocha": "*" }, "keywords": [ "dot", "nested", "notation", "object", "path", "stringify" ], "verb": { "related": { "list": [ "get-value", "set-value", "has-value", "omit-value", "unset-value" ] } }, "gitHead": "e627f22b57e55ab0073927bb16bed27aa20ab6a5", "_id": "to-object-path@0.2.0", "_shasum": "1634e1b52a88ba00e3949619fc0081dc9a3b07ca", "_from": ".", "_npmVersion": "2.14.7", "_nodeVersion": "4.2.1", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "1634e1b52a88ba00e3949619fc0081dc9a3b07ca", "tarball": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.2.0.tgz" }, "directories": {} }, "0.3.0": { "name": "to-object-path", "description": "Create an object path from a list or array of strings.", "version": "0.3.0", "homepage": "https://github.com/jonschlinkert/to-object-path", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/to-object-path.git" }, "bugs": { "url": "https://github.com/jonschlinkert/to-object-path/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": { "kind-of": "^3.0.2" }, "devDependencies": { "base": "^0.6.7", "mocha": "*" }, "keywords": [ "dot", "nested", "notation", "object", "path", "stringify" ], "verb": { "related": { "list": [ "get-value", "set-value", "has-value", "omit-value", "unset-value" ] } }, "gitHead": "56f6627285b7f5b7563e6f3ffe3766d966368c17", "_id": "to-object-path@0.3.0", "_shasum": "297588b7b0e7e0ac08e04e672f85c1f4999e17af", "_from": ".", "_npmVersion": "3.3.12", "_nodeVersion": "5.3.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "297588b7b0e7e0ac08e04e672f85c1f4999e17af", "tarball": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz" }, "directories": {} } }, "readme": "# to-object-path [![NPM version](https://badge.fury.io/js/to-object-path.svg)](http://badge.fury.io/js/to-object-path)\n\n> Create an object path from a list or array of strings.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i to-object-path --save\n```\n\n## Usage\n\n```js\nvar toPath = require('to-object-path');\n\ntoPath('foo', 'bar', 'baz');\ntoPath('foo', ['bar', 'baz']);\n//=> 'foo.bar.baz'\n```\n\nAlso supports passing an arguments object (without having to slice args):\n\n```js\nfunction foo()\n return toPath(arguments);\n}\n\nfoo('foo', 'bar', 'baz');\nfoo('foo', ['bar', 'baz']);\n//=> 'foo.bar.baz'\n```\n\nVisit the [example](./example.js) to see how this could be used in an application.\n\n## Related projects\n\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* [has-value](https://www.npmjs.com/package/has-value): Returns true if a value exists, false if empty. Works with deeply nested values using… [more](https://www.npmjs.com/package/has-value) | [homepage](https://github.com/jonschlinkert/has-value)\n* [omit-value](https://www.npmjs.com/package/omit-value): Omit properties from an object or deeply nested property of an object using object path… [more](https://www.npmjs.com/package/omit-value) | [homepage](https://github.com/jonschlinkert/omit-value)\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* [unset-value](https://www.npmjs.com/package/unset-value): Delete nested properties from an object using dot notation. | [homepage](https://github.com/jonschlinkert/unset-value)\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/to-object-path/issues/new).\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2015 Jon Schlinkert\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 28, 2015._", "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "time": { "modified": "2016-01-31T16:59:38.115Z", "created": "2015-09-02T10:31:54.697Z", "0.1.0": "2015-09-02T10:31:54.697Z", "0.2.0": "2015-10-29T03:52:29.811Z", "0.3.0": "2016-01-31T16:59:38.115Z" }, "homepage": "https://github.com/jonschlinkert/to-object-path", "keywords": [ "dot", "nested", "notation", "object", "path", "stringify" ], "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/to-object-path.git" }, "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "bugs": { "url": "https://github.com/jonschlinkert/to-object-path/issues" }, "license": "MIT", "readmeFilename": "README.md", "_attachments": {} }