123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- {
- "_args": [
- [
- {
- "raw": "which-module@^1.0.0",
- "scope": null,
- "escapedName": "which-module",
- "name": "which-module",
- "rawSpec": "^1.0.0",
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/yargs"
- ]
- ],
- "_from": "which-module@>=1.0.0 <2.0.0",
- "_id": "which-module@1.0.0",
- "_inCache": true,
- "_location": "/which-module",
- "_nodeVersion": "5.11.0",
- "_npmOperationalInternal": {
- "host": "packages-16-east.internal.npmjs.com",
- "tmp": "tmp/which-module-1.0.0.tgz_1465192451403_0.19380306638777256"
- },
- "_npmUser": {
- "name": "nexdrew",
- "email": "andrew@npmjs.com"
- },
- "_npmVersion": "3.8.8",
- "_phantomChildren": {},
- "_requested": {
- "raw": "which-module@^1.0.0",
- "scope": null,
- "escapedName": "which-module",
- "name": "which-module",
- "rawSpec": "^1.0.0",
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/yargs"
- ],
- "_resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz",
- "_shasum": "bba63ca861948994ff307736089e3b96026c2a4f",
- "_shrinkwrap": null,
- "_spec": "which-module@^1.0.0",
- "_where": "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/yargs",
- "author": {
- "name": "nexdrew"
- },
- "bugs": {
- "url": "https://github.com/nexdrew/which-module/issues"
- },
- "dependencies": {},
- "description": "Find the module object for something that was require()d",
- "devDependencies": {
- "ava": "^0.15.2",
- "coveralls": "^2.11.9",
- "nyc": "^6.4.4",
- "standard": "^7.1.2",
- "standard-version": "^2.3.0"
- },
- "directories": {},
- "dist": {
- "shasum": "bba63ca861948994ff307736089e3b96026c2a4f",
- "tarball": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz"
- },
- "files": [
- "index.js"
- ],
- "gitHead": "a5b7492798fac7e484fd8812d3d3a1138bb08784",
- "homepage": "https://github.com/nexdrew/which-module#readme",
- "keywords": [
- "which",
- "module",
- "exports",
- "filename",
- "require",
- "reverse",
- "lookup"
- ],
- "license": "ISC",
- "main": "index.js",
- "maintainers": [
- {
- "name": "nexdrew",
- "email": "andrew@npmjs.com"
- }
- ],
- "name": "which-module",
- "optionalDependencies": {},
- "readme": "# which-module\n\n> Find the module object for something that was require()d\n\n[](https://travis-ci.org/nexdrew/which-module)\n[](https://coveralls.io/github/nexdrew/which-module?branch=master)\n[](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",
- "readmeFilename": "README.md",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/nexdrew/which-module.git"
- },
- "scripts": {
- "coverage": "nyc report --reporter=text-lcov | coveralls",
- "pretest": "standard",
- "release": "standard-version",
- "test": "nyc ava"
- },
- "version": "1.0.0"
- }
|