UNPKG

layaair2-cmd

Version:

layaair version 2 toolkit

119 lines (118 loc) 6.07 kB
{ "_args": [ [ { "raw": "array-each@^1.0.1", "scope": null, "escapedName": "array-each", "name": "array-each", "rawSpec": "^1.0.1", "spec": ">=1.0.1 <2.0.0", "type": "range" }, "E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\object.defaults" ] ], "_from": "array-each@>=1.0.1 <2.0.0", "_id": "array-each@1.0.1", "_inCache": true, "_location": "/array-each", "_nodeVersion": "7.5.0", "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/array-each-1.0.1.tgz_1488156048457_0.42185514722950757" }, "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "_npmVersion": "4.1.2", "_phantomChildren": {}, "_requested": { "raw": "array-each@^1.0.1", "scope": null, "escapedName": "array-each", "name": "array-each", "rawSpec": "^1.0.1", "spec": ">=1.0.1 <2.0.0", "type": "range" }, "_requiredBy": [ "/object.defaults" ], "_resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz", "_shasum": "a794af0c05ab1752846ee753a1f211a05ba0c44f", "_shrinkwrap": null, "_spec": "array-each@^1.0.1", "_where": "E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\object.defaults", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "bugs": { "url": "https://github.com/jonschlinkert/array-each/issues" }, "dependencies": {}, "description": "Loop over each item in an array and call the given function on every element.", "devDependencies": { "gulp-format-md": "^0.1.11", "mocha": "^3.2.0" }, "directories": {}, "dist": { "shasum": "a794af0c05ab1752846ee753a1f211a05ba0c44f", "tarball": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz" }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], "gitHead": "a752d70897f25abfd38bfb51bb1b3a06ffcd2aed", "homepage": "https://github.com/jonschlinkert/array-each", "keywords": [ "array", "each" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "name": "array-each", "optionalDependencies": {}, "readme": "# array-each [![NPM version](https://img.shields.io/npm/v/array-each.svg?style=flat)](https://www.npmjs.com/package/array-each) [![NPM monthly downloads](https://img.shields.io/npm/dm/array-each.svg?style=flat)](https://npmjs.org/package/array-each) [![NPM total downloads](https://img.shields.io/npm/dt/array-each.svg?style=flat)](https://npmjs.org/package/array-each) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/array-each.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/array-each)\n\n> Loop over each item in an array and call the given function on every element.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save array-each\n```\n\n## Usage\n\n### [each](index.js#L34)\n\nLoop over each item in an array and call the given function on every element.\n\n**Params**\n\n* `array` **{Array}**\n* `fn` **{Function}**\n* `thisArg` **{Object}**: (optional) pass a `thisArg` to be used as the context in which to call the function.\n* `returns` **{undefined}**\n\n**Example**\n\n```js\neach(['a', 'b', 'c'], function(ele) {\n return ele + ele;\n});\n//=> ['aa', 'bb', 'cc']\n\neach(['a', 'b', 'c'], function(ele, i) {\n return i + ele;\n});\n//=> ['0a', '1b', '2c']\n```\n\n## About\n\n### Related projects\n\n* [arr-filter](https://www.npmjs.com/package/arr-filter): Faster alternative to javascript's native filter method. | [homepage](https://github.com/jonschlinkert/arr-filter \"Faster alternative to javascript's native filter method.\")\n* [arr-map](https://www.npmjs.com/package/arr-map): Faster, node.js focused alternative to JavaScript's native array map. | [homepage](https://github.com/jonschlinkert/arr-map \"Faster, node.js focused alternative to JavaScript's native array map.\")\n* [collection-map](https://www.npmjs.com/package/collection-map): Returns an array of mapped values from an array or object. | [homepage](https://github.com/jonschlinkert/collection-map \"Returns an array of mapped values from an array or 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### 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.4.2, on February 26, 2017._", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/array-each.git" }, "scripts": { "test": "mocha" }, "verb": { "toc": false, "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "related": { "list": [ "collection-map", "arr-filter", "arr-map" ] }, "lint": { "reflinks": true } }, "version": "1.0.1" }