{"name":"module-details-from-path","version":"1.0.3","description":"Extract the Node.js module details like name and base path given an abosulte path to a file inside the module","main":"index.js","dependencies":{},"devDependencies":{"standard":"^7.1.2","tape":"^4.6.0"},"scripts":{"test":"standard && node test.js"},"repository":{"type":"git","url":"git+https://github.com/watson/module-details-from-path.git"},"keywords":["node","nodejs","npm","module","extract","parse","name","basedir","directory","path","relative"],"author":{"name":"Thomas Watson Steen","email":"w@tson.dk","url":"https://twitter.com/wa7son"},"license":"MIT","bugs":{"url":"https://github.com/watson/module-details-from-path/issues"},"homepage":"https://github.com/watson/module-details-from-path#readme","coordinates":[55.666507,12.5798711],"gitHead":"6b231a35fae6b7f5b6b12b55fbb75fd4913afe5a","_id":"module-details-from-path@1.0.3","_shasum":"114c949673e2a8a35e9d35788527aa37b679da2b","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"watson","email":"w@tson.dk"},"maintainers":[{"name":"watson","email":"w@tson.dk"}],"dist":{"shasum":"114c949673e2a8a35e9d35788527aa37b679da2b","tarball":"http://registry-npm.ywwl.com/module-details-from-path/download/module-details-from-path-1.0.3.tgz","integrity":"sha512-ySViT69/76t8VhE1xXHK6Ch4NcDd26gx0MzKXLO+F7NOtnqH68d9zF94nT8ZWSxXh8ELOERsnJO/sWt1xZYw5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF51ss92DzCi8LtmIbpXXty680dNNQfuQKAfh4csmbagAiEA/ABqV4bu190p5NoC9Gw6yMUr6ujMNyJ+9k2oAZxwFVs="}],"size":2194,"noattachment":false,"key":"/module-details-from-path/-/module-details-from-path-1.0.3.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/module-details-from-path-1.0.3.tgz_1468074058960_0.0820276674348861"},"directories":{},"readme":"# module-details-from-path\n\nExtract the Node.js module details like name and base path given an\nabsolute path to a file inside the module.\n\n[![Build status](https://travis-ci.org/watson/module-details-from-path.svg?branch=master)](https://travis-ci.org/watson/module-details-from-path)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n\n## Installation\n\n```\nnpm install module-details-from-path --save\n```\n\n## Usage\n\n```js\nvar assert = require('assert')\nvar parse = require('module-details-from-path')\n\nvar path = '/Users/watson/code/node_modules/blackjack/node_modules/picture-tube/bin/tube.js'\n\nassert.deepStrictEqual(parse(path), {\n  name: 'picture-tube',\n  basedir: '/Users/watson/code/node_modules/blackjack/node_modules/picture-tube',\n  path: 'bin/tube.js'\n})\n```\n\nReturns `undefined` if module details cannot be found.\n\n## License\n\nMIT\n","publish_time":1468074060366,"_cnpm_publish_time":1468074060366,"dist-tags":{"latest":"1.0.4"}}