package.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "_args": [
  3. [
  4. {
  5. "raw": "which-module@^1.0.0",
  6. "scope": null,
  7. "escapedName": "which-module",
  8. "name": "which-module",
  9. "rawSpec": "^1.0.0",
  10. "spec": ">=1.0.0 <2.0.0",
  11. "type": "range"
  12. },
  13. "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/yargs"
  14. ]
  15. ],
  16. "_from": "which-module@>=1.0.0 <2.0.0",
  17. "_id": "which-module@1.0.0",
  18. "_inCache": true,
  19. "_location": "/which-module",
  20. "_nodeVersion": "5.11.0",
  21. "_npmOperationalInternal": {
  22. "host": "packages-16-east.internal.npmjs.com",
  23. "tmp": "tmp/which-module-1.0.0.tgz_1465192451403_0.19380306638777256"
  24. },
  25. "_npmUser": {
  26. "name": "nexdrew",
  27. "email": "andrew@npmjs.com"
  28. },
  29. "_npmVersion": "3.8.8",
  30. "_phantomChildren": {},
  31. "_requested": {
  32. "raw": "which-module@^1.0.0",
  33. "scope": null,
  34. "escapedName": "which-module",
  35. "name": "which-module",
  36. "rawSpec": "^1.0.0",
  37. "spec": ">=1.0.0 <2.0.0",
  38. "type": "range"
  39. },
  40. "_requiredBy": [
  41. "/yargs"
  42. ],
  43. "_resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz",
  44. "_shasum": "bba63ca861948994ff307736089e3b96026c2a4f",
  45. "_shrinkwrap": null,
  46. "_spec": "which-module@^1.0.0",
  47. "_where": "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/yargs",
  48. "author": {
  49. "name": "nexdrew"
  50. },
  51. "bugs": {
  52. "url": "https://github.com/nexdrew/which-module/issues"
  53. },
  54. "dependencies": {},
  55. "description": "Find the module object for something that was require()d",
  56. "devDependencies": {
  57. "ava": "^0.15.2",
  58. "coveralls": "^2.11.9",
  59. "nyc": "^6.4.4",
  60. "standard": "^7.1.2",
  61. "standard-version": "^2.3.0"
  62. },
  63. "directories": {},
  64. "dist": {
  65. "shasum": "bba63ca861948994ff307736089e3b96026c2a4f",
  66. "tarball": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz"
  67. },
  68. "files": [
  69. "index.js"
  70. ],
  71. "gitHead": "a5b7492798fac7e484fd8812d3d3a1138bb08784",
  72. "homepage": "https://github.com/nexdrew/which-module#readme",
  73. "keywords": [
  74. "which",
  75. "module",
  76. "exports",
  77. "filename",
  78. "require",
  79. "reverse",
  80. "lookup"
  81. ],
  82. "license": "ISC",
  83. "main": "index.js",
  84. "maintainers": [
  85. {
  86. "name": "nexdrew",
  87. "email": "andrew@npmjs.com"
  88. }
  89. ],
  90. "name": "which-module",
  91. "optionalDependencies": {},
  92. "readme": "# which-module\n\n> Find the module object for something that was require()d\n\n[![Build Status](https://travis-ci.org/nexdrew/which-module.svg?branch=master)](https://travis-ci.org/nexdrew/which-module)\n[![Coverage Status](https://coveralls.io/repos/github/nexdrew/which-module/badge.svg?branch=master)](https://coveralls.io/github/nexdrew/which-module?branch=master)\n[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)\n\nFind the `module` object in `require.cache` for something that was `require()`d\nor `import`ed - essentially a reverse `require()` lookup.\n\nUseful for libs that want to e.g. lookup a filename for a module or submodule\nthat it did not `require()` itself.\n\n## Install and Usage\n\n```\nnpm install --save which-module\n```\n\n```js\nconst whichModule = require('which-module')\n\nconsole.log(whichModule(require('something')))\n// Module {\n// id: '/path/to/project/node_modules/something/index.js',\n// exports: [Function],\n// parent: ...,\n// filename: '/path/to/project/node_modules/something/index.js',\n// loaded: true,\n// children: [],\n// paths: [ '/path/to/project/node_modules/something/node_modules',\n// '/path/to/project/node_modules',\n// '/path/to/node_modules',\n// '/path/node_modules',\n// '/node_modules' ] }\n```\n\n## API\n\n### `whichModule(exported)`\n\nReturn the [`module` object](https://nodejs.org/api/modules.html#modules_the_module_object),\nif any, that represents the given argument in the `require.cache`.\n\n`exported` can be anything that was previously `require()`d or `import`ed as a\nmodule, submodule, or dependency - which means `exported` is identical to the\n`module.exports` returned by this method.\n\nIf `exported` did not come from the `exports` of a `module` in `require.cache`,\nthen this method returns `null`.\n\n## License\n\nISC © Contributors\n",
  93. "readmeFilename": "README.md",
  94. "repository": {
  95. "type": "git",
  96. "url": "git+https://github.com/nexdrew/which-module.git"
  97. },
  98. "scripts": {
  99. "coverage": "nyc report --reporter=text-lcov | coveralls",
  100. "pretest": "standard",
  101. "release": "standard-version",
  102. "test": "nyc ava"
  103. },
  104. "version": "1.0.0"
  105. }