{"name":"file-url","version":"1.1.0","description":"Convert a path to a file url: unicorn.jpg → file:///Users/sindresorhus/unicorn.jpg","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/file-url"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"bin":{"file-url":"cli.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && mocha"},"files":["cli.js","index.js"],"keywords":["cli-app","cli","bin","app","file","url","uri","path","scheme","slash"],"dependencies":{"meow":"^3.7.0"},"devDependencies":{"mocha":"*","xo":"*"},"gitHead":"369f69b5ec1972b8dfdc3b86e36d148571fac96e","bugs":{"url":"https://github.com/sindresorhus/file-url/issues"},"homepage":"https://github.com/sindresorhus/file-url","_id":"file-url@1.1.0","_shasum":"a0f9cf3eb6904c9b1d3a6790b83a976fc40217bb","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a0f9cf3eb6904c9b1d3a6790b83a976fc40217bb","tarball":"http://registry-npm.ywwl.com/file-url/download/file-url-1.1.0.tgz","integrity":"sha512-Kul2nDrif1KcPH8g8bynl3/NtzaDvm3oUY3jS1tJu4fzfb6bUt1HNQ6MmLcK+pU7/ixVWKBokjHQwb83d2ngHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCT6JZNFen6izTayZtPDtkicQhXSGO+rW8aO59EAFLjZAIgX0m6YlwWDwwOISA2DPRoqlpHaaIm3gVn1O3yj1PqntU="}],"size":1913,"noattachment":false,"key":"/file-url/-/file-url-1.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/file-url-1.1.0.tgz_1456910238557_0.24679342447780073"},"directories":{},"readme":"# file-url\n\n> Convert a file path to a file url: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`\n\n## Install\n\n```\n$ npm install file-url\n```\n\n## Usage\n\n```js\nimport fileUrl from 'file-url';\n\nfileUrl('unicorn.jpg');\n//=> 'file:///Users/sindresorhus/dev/file-url/unicorn.jpg'\n\nfileUrl('/Users/pony/pics/unicorn.jpg');\n//=> 'file:///Users/pony/pics/unicorn.jpg'\n\nfileUrl('unicorn.jpg', {resolve: false});\n//=> 'file:///unicorn.jpg'\n```\n\n## API\n\n### fileUrl(filePath, options?)\n\nReturns the `filePath` converted to a file URL.\n\n#### filePath\n\nType: `string`\n\nFile path to convert.\n\n#### options\n\nType: `object`\n\n##### resolve\n\nType: `boolean`\\\nDefault: `true`\n\nPassing `false` will make it not call `path.resolve()` on the path.\n\n## Related\n\n- [file-url-cli](https://github.com/sindresorhus/file-url-cli) - CLI for this module\n","publish_time":1456910239086,"_cnpm_publish_time":1456910239086,"dist-tags":{"latest":"4.0.0"}}