File manager - Edit - /usr/local/lib/node_modules/pm2/node_modules/module-details-from-path/README.md
Back
# module-details-from-path Extract the Node.js module details like name and base path given an absolute path to a file inside the module. [](https://travis-ci.org/watson/module-details-from-path) [](https://github.com/feross/standard) ## Installation ``` npm install module-details-from-path --save ``` ## Usage ```js var assert = require('assert') var parse = require('module-details-from-path') var path = '/Users/watson/code/node_modules/blackjack/node_modules/picture-tube/bin/tube.js' assert.deepStrictEqual(parse(path), { name: 'picture-tube', basedir: '/Users/watson/code/node_modules/blackjack/node_modules/picture-tube', path: 'bin/tube.js' }) ``` Returns `undefined` if module details cannot be found. ## License MIT
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings