{"id":29584446,"url":"https://github.com/lite-js/module-path","last_synced_at":"2025-07-20T00:34:27.275Z","repository":{"id":57127040,"uuid":"44517017","full_name":"lite-js/module-path","owner":"lite-js","description":"locate the path of an installed node module","archived":false,"fork":false,"pushed_at":"2017-07-13T03:01:12.000Z","size":18,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T10:50:17.014Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://leungwensen.github.io/node-module-path/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lite-js.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-19T07:07:03.000Z","updated_at":"2018-09-10T09:13:24.000Z","dependencies_parsed_at":"2022-08-31T11:52:47.652Z","dependency_job_id":null,"html_url":"https://github.com/lite-js/module-path","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lite-js/module-path","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lite-js%2Fmodule-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lite-js%2Fmodule-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lite-js%2Fmodule-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lite-js%2Fmodule-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lite-js","download_url":"https://codeload.github.com/lite-js/module-path/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lite-js%2Fmodule-path/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266048716,"owners_count":23868744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-20T00:34:26.595Z","updated_at":"2025-07-20T00:34:27.252Z","avatar_url":"https://github.com/lite-js.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"module-path\n===========\n\n[![npm version](https://badge.fury.io/js/%40lite-js%2Fmodule-path.svg)](https://badge.fury.io/js/%40lite-js%2Fmodule-path) [![Build Status](https://travis-ci.org/lite-js/module-path.svg?branch=master)](https://travis-ci.org/lite-js/module-path)\n\nlocate the path of an installed node module\n\n## install\n\n```shell\n$ npm install @lite-js/module-path [-g]\n```\n\n## API\n\n```javascript\nconst modulePath = require('@lite-js/module-path')\n\n// global module\nconsole.log(modulePath('zfinder'))\n// =\u003e /Users/liangwensen/.nvm/versions/node/v4.2.2/lib/node_modules/.zfinder_npminstall/zfinder/0.2.9/zfinder/lib/index.js\n\n// local module\nconsole.log(modulePath('mocha'))\n// =\u003e /Users/liangwensen/repo/leungwensen/module-path/node_modules/.npminstall/mocha/3.4.2/mocha/index.js\n\n// core module\nconsole.log(modulePath('path'))\n// =\u003e path\n```\n\n## CLI\n\n```shell\n$ npm install @lite-js/module-path -g\n$ module-path zfinder\n# /Users/liangwensen/.nvm/versions/node/v4.2.2/lib/node_modules/.zfinder_npminstall/zfinder/0.2.9/zfinder/lib/index.js\n$ module-path npm\n# /Users/liangwensen/.nvm/versions/node/v4.2.2/lib/node_modules/npm/lib/npm.js\n```\n\n## Thanks to\n\n* [tj/commander.js](https://github.com/tj/commander.js)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flite-js%2Fmodule-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flite-js%2Fmodule-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flite-js%2Fmodule-path/lists"}