GT2/GT2-Android/node_modules/mimic-fn/package.json

111 lines
3.7 KiB
JSON

{
"_args": [
[
{
"raw": "mimic-fn@^1.0.0",
"scope": null,
"escapedName": "mimic-fn",
"name": "mimic-fn",
"rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/onetime"
]
],
"_from": "mimic-fn@>=1.0.0 <2.0.0",
"_id": "mimic-fn@1.2.0",
"_inCache": true,
"_location": "/mimic-fn",
"_nodeVersion": "8.9.4",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/mimic-fn-1.2.0.tgz_1517542098165_0.264689544448629"
},
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"_npmVersion": "5.6.0",
"_phantomChildren": {},
"_requested": {
"raw": "mimic-fn@^1.0.0",
"scope": null,
"escapedName": "mimic-fn",
"name": "mimic-fn",
"rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/onetime"
],
"_resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz",
"_shasum": "820c86a39334640e99516928bd03fca88057d022",
"_shrinkwrap": null,
"_spec": "mimic-fn@^1.0.0",
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/onetime",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/mimic-fn/issues"
},
"dependencies": {},
"description": "Make a function mimic another one",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"directories": {},
"dist": {
"integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==",
"shasum": "820c86a39334640e99516928bd03fca88057d022",
"tarball": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz"
},
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
"gitHead": "d762fc495eef1e48718e1f39b82c39ff5e95dfe4",
"homepage": "https://github.com/sindresorhus/mimic-fn#readme",
"keywords": [
"function",
"mimic",
"imitate",
"rename",
"copy",
"inherit",
"properties",
"name",
"func",
"fn",
"set",
"infer",
"change"
],
"license": "MIT",
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"name": "mimic-fn",
"optionalDependencies": {},
"readme": "# mimic-fn [![Build Status](https://travis-ci.org/sindresorhus/mimic-fn.svg?branch=master)](https://travis-ci.org/sindresorhus/mimic-fn)\n\n> Make a function mimic another one\n\nUseful when you wrap a function in another function and like to preserve the original name and other properties.\n\n\n## Install\n\n```\n$ npm install mimic-fn\n```\n\n\n## Usage\n\n```js\nconst mimicFn = require('mimic-fn');\n\nfunction foo() {}\nfoo.unicorn = '🦄';\n\nfunction wrapper() {\n\treturn foo() {};\n}\n\nconsole.log(wrapper.name);\n//=> 'wrapper'\n\nmimicFn(wrapper, foo);\n\nconsole.log(wrapper.name);\n//=> 'foo'\n\nconsole.log(wrapper.unicorn);\n//=> '🦄'\n```\n\n\n## API\n\nIt will copy over the properties `name`, `length`, `displayName`, and any custom properties you may have set.\n\n### mimicFn(to, from)\n\nIt will modify `to` and return it.\n\n#### to\n\nType: `Function`\n\nMimicking function.\n\n#### from\n\nType: `Function`\n\nFunction to mimic.\n\n\n## Related\n\n- [rename-fn](https://github.com/sindresorhus/rename-fn) - Rename a function\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/mimic-fn.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "1.2.0"
}