{"name":"module-details-from-path","version":"1.0.1","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.6665681,12.5800787],"gitHead":"6664b90a43bf1beb9e4770992ac13d17ed5a66f5","_id":"module-details-from-path@1.0.1","_shasum":"3af40936eae5b87a9a37ead0a2ad77da54649c8c","_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":"3af40936eae5b87a9a37ead0a2ad77da54649c8c","tarball":"http://registry-npm.ywwl.com/module-details-from-path/download/module-details-from-path-1.0.1.tgz","integrity":"sha512-cydMV+lPrgJjjw/BHoAAH+r5dXXSlDX4fJGmnX+f1GyhiDMgJgVVXfOqJ+1aF1I9+91H58++Pt8rUpsUfaRC2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF28gDcUYZT1XKzioKrkoGRbY/51QndbHKxBQMVoLPEaAiAbpULuyNAvjL4LJUBL29Fbre/UUG3uYZKzrGC91Vy8jA=="}],"size":2108,"noattachment":false,"key":"/module-details-from-path/-/module-details-from-path-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/module-details-from-path-1.0.1.tgz_1455015365648_0.9046150476206094"},"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":1455015368480,"_cnpm_publish_time":1455015368480,"dist-tags":{"latest":"1.0.4"}}