{"_id":"try-resolve","_rev":"5-6c06458c948356d30be0cc6546fc6511","name":"try-resolve","description":"Try and resolve a filename","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"try-resolve","version":"1.0.0","description":"Try and resolve a filename","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sebmck/try-resolve.git"},"author":{"name":"Sebastian McKenzie","email":"sebmck@gmail.com"},"license":"MIT","gitHead":"5a4853d1a18bf8519bfcaa56bb95aa25dec79b4c","bugs":{"url":"https://github.com/sebmck/try-resolve/issues"},"homepage":"https://github.com/sebmck/try-resolve#readme","_id":"try-resolve@1.0.0","scripts":{},"_shasum":"4ad015f89e56b209a2ad527b2394defbf8ddc258","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"sebmck","email":"sebmck@gmail.com"},"maintainers":[{"name":"sebmck","email":"sebmck@gmail.com"}],"dist":{"shasum":"4ad015f89e56b209a2ad527b2394defbf8ddc258","tarball":"https://registry.npmjs.org/try-resolve/-/try-resolve-1.0.0.tgz","integrity":"sha512-Or9KfGIaJJ1VANVnzRXppUHtjBtZRU0krWLvTIasStFmKMfzLb/1esVSmudem6vU0vS6ccvJx/yLsF7uBtyX/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7UeDCuiMIqEIZu13C5n5EcuOu+laBxpDEhwL6EEMdcgIgZrNlhcxCN9p6OberTUWX/RCH/td4U3DjfugH0EzVhPw="}]},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.0.1":{"name":"try-resolve","version":"1.0.1","description":"Try and resolve a filename","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sebmck/try-resolve.git"},"author":{"name":"Sebastian McKenzie","email":"sebmck@gmail.com"},"license":"MIT","gitHead":"11f52ddf92dd1abdea9e64edf54d87138a0f610e","bugs":{"url":"https://github.com/sebmck/try-resolve/issues"},"homepage":"https://github.com/sebmck/try-resolve#readme","_id":"try-resolve@1.0.1","scripts":{},"_shasum":"cfde6fabd72d63e5797cfaab873abbe8e700e912","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"sebmck","email":"sebmck@gmail.com"},"maintainers":[{"name":"sebmck","email":"sebmck@gmail.com"}],"dist":{"shasum":"cfde6fabd72d63e5797cfaab873abbe8e700e912","tarball":"https://registry.npmjs.org/try-resolve/-/try-resolve-1.0.1.tgz","integrity":"sha512-yHeaPjCBzVaXwWl5IMUapTaTC2rn/eBYg2fsG2L+CvJd+ttFbk0ylDnpTO3wVhosmE1tQEvcebbBeKLCwScQSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNPLfYMGmoaJvPUXXNJcZm4FT0pEECFESSQ/w3lDbczwIgPgwiHH8+DDXGvSOEORJq45o79Kc8MT/wQXuIPBbGtLg="}]},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"readme":"# try-resolve\n\n## Installation\n\n```sh\n$ npm install try-resolve\n```\n\n## Usage\n\n```javascrpt\nvar resolve = require(\"try-resolve\");\n```\n\n### `resolve(filename, [require])`\n\n - `filename` is a filename to be resolved.\n - `require` is an optional instance of the `require` function from any file.\n\nReturns `null` if the file can't be required, otherwise it returns an absolute filename string.\n\n#### Example\n\n```javascript\nif (require(\"try-resolve\")(\"/home/sebastian/file\")) {\n  // this file can be required\n} else {\n  // it can't\n}\n```\n\n### `resolve.relative(filename)`\n\nResolve a filename relative to the cwd.\n","maintainers":[{"name":"sebmck","email":"sebmck@gmail.com"}],"time":{"modified":"2024-04-16T05:18:04.670Z","created":"2015-07-25T01:45:50.857Z","1.0.0":"2015-07-25T01:45:50.857Z","1.0.1":"2015-07-25T01:50:28.780Z"},"homepage":"https://github.com/sebmck/try-resolve#readme","repository":{"type":"git","url":"git+https://github.com/sebmck/try-resolve.git"},"author":{"name":"Sebastian McKenzie","email":"sebmck@gmail.com"},"bugs":{"url":"https://github.com/sebmck/try-resolve/issues"},"license":"MIT","readmeFilename":"README.md"}