{ "_id": "collection-visit", "_rev": "9-54dca90000dfa029dbc426645d34d6a6", "name": "collection-visit", "description": "Visit a method over the items in an object, or map visit over the objects in an array.", "dist-tags": { "latest": "1.0.0" }, "versions": { "0.1.0": { "name": "collection-visit", "description": "Visit a method over the items in an object, or map visit over the objects in an array.", "version": "0.1.0", "homepage": "https://github.com/jonschlinkert/collection-visit", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/collection-visit.git" }, "bugs": { "url": "https://github.com/jonschlinkert/collection-visit/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": { "map-visit": "^0.1.0", "object-visit": "^0.1.0" }, "devDependencies": { "mocha": "*", "should": "*" }, "keywords": [ "array", "arrays", "context", "function", "helper", "invoke", "key", "map", "method", "object", "objects", "value", "visit", "visitor" ], "verbiage": { "related": { "list": [ "object-visit", "map-visit" ] } }, "gitHead": "d81c5237aa8488f65cca885a32f87a3a970a4580", "_id": "collection-visit@0.1.0", "_shasum": "aa62c98059c886e7305dbe9dd299ce63be1f1665", "_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": "aa62c98059c886e7305dbe9dd299ce63be1f1665", "tarball": "https://registry.npmjs.org/collection-visit/-/collection-visit-0.1.0.tgz" }, "directories": {} }, "0.1.1": { "name": "collection-visit", "description": "Visit a method over the items in an object, or map visit over the objects in an array.", "version": "0.1.1", "homepage": "https://github.com/jonschlinkert/collection-visit", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/collection-visit.git" }, "bugs": { "url": "https://github.com/jonschlinkert/collection-visit/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": { "map-visit": "^0.1.0", "object-visit": "^0.1.0" }, "devDependencies": { "mocha": "*", "should": "*" }, "keywords": [ "array", "arrays", "context", "function", "helper", "invoke", "key", "map", "method", "object", "objects", "value", "visit", "visitor" ], "verbiage": { "related": { "list": [ "object-visit", "map-visit" ] } }, "gitHead": "d81c5237aa8488f65cca885a32f87a3a970a4580", "_id": "collection-visit@0.1.1", "_shasum": "ea6f937e340748725c28107a674554df759e070c", "_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": "ea6f937e340748725c28107a674554df759e070c", "tarball": "https://registry.npmjs.org/collection-visit/-/collection-visit-0.1.1.tgz" }, "directories": {} }, "0.2.0": { "name": "collection-visit", "description": "Visit a method over the items in an object, or map visit over the objects in an array.", "version": "0.2.0", "homepage": "https://github.com/jonschlinkert/collection-visit", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/collection-visit.git" }, "bugs": { "url": "https://github.com/jonschlinkert/collection-visit/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": { "map-visit": "^0.1.1", "object-visit": "^0.2.0" }, "devDependencies": { "mocha": "*", "should": "*" }, "keywords": [ "array", "arrays", "context", "function", "helper", "invoke", "key", "map", "method", "object", "objects", "value", "visit", "visitor" ], "verbiage": { "related": { "list": [ "object-visit", "map-visit" ] } }, "gitHead": "88e2cb62bbfff3949410624c4b6e26271e3d2c63", "_id": "collection-visit@0.2.0", "_shasum": "c1ab62a88911e8867d3a798cf10ce82d54de410c", "_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": "c1ab62a88911e8867d3a798cf10ce82d54de410c", "tarball": "https://registry.npmjs.org/collection-visit/-/collection-visit-0.2.0.tgz" }, "directories": {} }, "0.2.1": { "name": "collection-visit", "description": "Visit a method over the items in an object, or map visit over the objects in an array.", "version": "0.2.1", "homepage": "https://github.com/jonschlinkert/collection-visit", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/collection-visit.git" }, "bugs": { "url": "https://github.com/jonschlinkert/collection-visit/issues" }, "license": "MIT", "files": [ "index.js", "utils.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": { "lazy-cache": "^0.2.3", "map-visit": "^0.1.3", "object-visit": "^0.2.1" }, "devDependencies": { "gulp": "^3.9.0", "gulp-istanbul": "^0.10.1", "gulp-jshint": "^1.11.2", "gulp-mocha": "^2.1.3", "jshint-stylish": "^2.0.1", "mocha": "*", "should": "*" }, "keywords": [ "array", "arrays", "context", "function", "helper", "invoke", "key", "map", "method", "object", "objects", "value", "visit", "visitor" ], "verbiage": { "related": { "list": [ "base-methods", "object-visit", "map-visit" ] } }, "gitHead": "f78bd0c17ec56da6477e1d42c0e605c95bf00bff", "_id": "collection-visit@0.2.1", "_shasum": "2441aaee1ad073e27dd8afbef361e67bd0f2d678", "_from": ".", "_npmVersion": "2.14.4", "_nodeVersion": "4.1.1", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "2441aaee1ad073e27dd8afbef361e67bd0f2d678", "tarball": "https://registry.npmjs.org/collection-visit/-/collection-visit-0.2.1.tgz" }, "directories": {} }, "0.2.3": { "name": "collection-visit", "description": "Visit a method over the items in an object, or map visit over the objects in an array.", "version": "0.2.3", "homepage": "https://github.com/jonschlinkert/collection-visit", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/collection-visit.git" }, "bugs": { "url": "https://github.com/jonschlinkert/collection-visit/issues" }, "license": "MIT", "files": [ "index.js", "utils.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": { "lazy-cache": "^2.0.1", "map-visit": "^0.1.5", "object-visit": "^0.3.4" }, "devDependencies": { "gulp": "^3.9.1", "gulp-eslint": "^3.0.1", "gulp-format-md": "^0.1.10", "gulp-istanbul": "^1.0.0", "gulp-mocha": "^3.0.0", "mocha": "^3.0.1", "should": "^10.0.0" }, "keywords": [ "array", "arrays", "context", "function", "helper", "invoke", "key", "map", "method", "object", "objects", "value", "visit", "visitor" ], "verb": { "related": { "list": [ "base-methods", "object-visit", "map-visit" ] }, "toc": false, "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true }, "reflinks": [ "verb", "verb-generate-readme" ] }, "gitHead": "e00730979acb959313cd56b870014ebb3374c22f", "_id": "collection-visit@0.2.3", "_shasum": "2f62483caecc95f083b9a454a3ee9e6139ad7957", "_from": ".", "_npmVersion": "3.7.5", "_nodeVersion": "5.1.1", "_npmUser": { "name": "doowb", "email": "brian.woodward@gmail.com" }, "dist": { "shasum": "2f62483caecc95f083b9a454a3ee9e6139ad7957", "tarball": "https://registry.npmjs.org/collection-visit/-/collection-visit-0.2.3.tgz" }, "maintainers": [ { "name": "doowb", "email": "brian.woodward@gmail.com" }, { "name": "jonschlinkert", "email": "github@sellside.com" } ], "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/collection-visit-0.2.3.tgz_1470434671880_0.7803895985707641" }, "directories": {} }, "1.0.0": { "name": "collection-visit", "description": "Visit a method over the items in an object, or map visit over the objects in an array.", "version": "1.0.0", "homepage": "https://github.com/jonschlinkert/collection-visit", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "contributors": [ { "name": "Brian Woodward", "email": "brian.woodward@gmail.com", "url": "https://twitter.com/doowb" }, { "name": "Jon Schlinkert", "email": "jon.schlinkert@sellside.com", "url": "http://twitter.com/jonschlinkert" } ], "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/collection-visit.git" }, "bugs": { "url": "https://github.com/jonschlinkert/collection-visit/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": { "map-visit": "^1.0.0", "object-visit": "^1.0.0" }, "devDependencies": { "clone-deep": "^0.2.4", "gulp": "^3.9.1", "gulp-eslint": "^3.0.1", "gulp-format-md": "^0.1.12", "gulp-istanbul": "^1.1.1", "gulp-mocha": "^3.0.0", "mocha": "^3.2.0" }, "keywords": [ "array", "arrays", "collection", "context", "function", "helper", "invoke", "key", "map", "method", "object", "objects", "value", "visit", "visitor" ], "verb": { "related": { "list": [ "base-methods", "map-visit", "object-visit" ] }, "toc": false, "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true } }, "gitHead": "39c229dceb7e124cb821b59668df5da1d5c81a6c", "_id": "collection-visit@1.0.0", "_shasum": "4bc0373c164bc3291b4d368c829cf1a80a59dca0", "_from": ".", "_npmVersion": "4.1.2", "_nodeVersion": "7.7.3", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "doowb", "email": "brian.woodward@gmail.com" }, { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "4bc0373c164bc3291b4d368c829cf1a80a59dca0", "tarball": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz" }, "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/collection-visit-1.0.0.tgz_1491775229437_0.10189219401217997" }, "directories": {} } }, "readme": "# collection-visit [![NPM version](https://img.shields.io/npm/v/collection-visit.svg?style=flat)](https://www.npmjs.com/package/collection-visit) [![NPM monthly downloads](https://img.shields.io/npm/dm/collection-visit.svg?style=flat)](https://npmjs.org/package/collection-visit) [![NPM total downloads](https://img.shields.io/npm/dt/collection-visit.svg?style=flat)](https://npmjs.org/package/collection-visit) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/collection-visit.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/collection-visit)\n\n> Visit a method over the items in an object, or map visit over the objects in an array.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save collection-visit\n```\n\n## Usage\n\n```js\nvar visit = require('collection-visit');\n\nvar ctx = {\n data: {},\n set: function (key, value) {\n if (typeof key === 'object') {\n visit(ctx, 'set', key);\n } else {\n ctx.data[key] = value;\n }\n }\n};\n\nctx.set('a', 'a');\nctx.set('b', 'b');\nctx.set('c', 'c');\nctx.set({d: {e: 'f'}});\n\nconsole.log(ctx.data);\n//=> {a: 'a', b: 'b', c: 'c', d: { e: 'f' }};\n```\n\n## About\n\n### Related projects\n\n* [base-methods](https://www.npmjs.com/package/base-methods): base-methods is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting… [more](https://github.com/jonschlinkert/base-methods) | [homepage](https://github.com/jonschlinkert/base-methods \"base-methods is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting with a handful of common methods, like `set`, `get`, `del` and `use`.\")\n* [map-visit](https://www.npmjs.com/package/map-visit): Map `visit` over an array of objects. | [homepage](https://github.com/jonschlinkert/map-visit \"Map `visit` over an array of objects.\")\n* [object-visit](https://www.npmjs.com/package/object-visit): Call a specified method on each value in the given object. | [homepage](https://github.com/jonschlinkert/object-visit \"Call a specified method on each value in the given object.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 13 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 9 | [doowb](https://github.com/doowb) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.5.0, on April 09, 2017._", "maintainers": [ { "name": "doowb", "email": "brian.woodward@gmail.com" }, { "name": "jonschlinkert", "email": "github@sellside.com" } ], "time": { "modified": "2017-04-09T22:00:31.200Z", "created": "2015-07-31T21:37:58.665Z", "0.1.0": "2015-07-31T21:37:58.665Z", "0.1.1": "2015-08-05T09:59:50.927Z", "0.2.0": "2015-08-29T23:39:18.234Z", "0.2.1": "2015-10-06T13:37:34.052Z", "0.2.2": "2015-11-08T19:13:43.260Z", "0.2.3": "2016-08-05T22:04:33.762Z", "1.0.0": "2017-04-09T22:00:31.200Z" }, "homepage": "https://github.com/jonschlinkert/collection-visit", "keywords": [ "array", "arrays", "collection", "context", "function", "helper", "invoke", "key", "map", "method", "object", "objects", "value", "visit", "visitor" ], "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/collection-visit.git" }, "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "bugs": { "url": "https://github.com/jonschlinkert/collection-visit/issues" }, "license": "MIT", "readmeFilename": "README.md", "contributors": [ { "name": "Brian Woodward", "email": "brian.woodward@gmail.com", "url": "https://twitter.com/doowb" }, { "name": "Jon Schlinkert", "email": "jon.schlinkert@sellside.com", "url": "http://twitter.com/jonschlinkert" } ], "_attachments": {} }