{"name":"module-details-from-path","version":"1.0.2","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":"^6.0.4","tape":"^4.4.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.6665316,12.5802111],"gitHead":"825df40c839530ac374bb416f354bd2613ed0130","_id":"module-details-from-path@1.0.2","_shasum":"742c057e247693d6736f19d00d79580e5c0bb560","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"watson","email":"w@tson.dk"},"maintainers":[{"name":"watson","email":"w@tson.dk"}],"dist":{"shasum":"742c057e247693d6736f19d00d79580e5c0bb560","tarball":"http://registry-npm.ywwl.com/module-details-from-path/download/module-details-from-path-1.0.2.tgz","integrity":"sha512-Vc8GUqJ/wNvAXf0+enaxIRhLDcwVrOpOHnLD91xARhwG6G+V+CdcpaSZCcrV6ElWnY59XYtv5QgQ5sjkEvH7lQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHbHEr6yGbIvr9kgeNIm3nZazOnYv7ZAgxdhFcZIQ6yIAiEAiKNCgapkzLsR1NdKQBL5V/l4jYD0V2uIxl/3ujq9Llc="}],"size":2117,"noattachment":false,"key":"/module-details-from-path/-/module-details-from-path-1.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/module-details-from-path-1.0.2.tgz_1455019658355_0.7972114481963217"},"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":1455019661185,"_cnpm_publish_time":1455019661185,"dist-tags":{"latest":"1.0.4"}}