{"_id":"helper-resolve","_rev":"12-d66a4293210f596c69b7a1490fd3ffaf","name":"helper-resolve","description":"Template helper to resolve the path to a file in node_modules. This is mostly useful during development.","dist-tags":{"latest":"0.3.1"},"versions":{"0.1.0":{"name":"helper-resolve","description":"Template helper to resolve the path to a file in node_modules. This is mostly useful during development.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/helper-resolve","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/helper-resolve.git"},"bugs":{"url":"https://github.com/jonschlinkert/helper-resolve/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/helper-resolve/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"resolve":"^1.1.0"},"devDependencies":{"handlebars":"^3.0.0","jquery":"^2.1.3","lodash":"^3.2.0","mocha":"*","resolve":"^1.1.0","should":"*","template":"^0.9.3"},"keywords":[],"gitHead":"38eb2c3d093dd3193b459020f096eaf2236eda6f","_id":"helper-resolve@0.1.0","_shasum":"7721091ebb9a647594b080f6a30de7b908d6fa49","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"7721091ebb9a647594b080f6a30de7b908d6fa49","tarball":"https://registry.npmjs.org/helper-resolve/-/helper-resolve-0.1.0.tgz","integrity":"sha512-cmDXnLu9HFOQJPxjM8g5i47vN2AnJJzAdCfVSSSTTb8tUuW4cKnz1rW3/66wt1FyuQfcDEwvObkJOgpGRc5pYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFUTlrW/4M8bi2IXq+AWfbJ9FYVrprxQSYL90xsUy7HIAiEA1q6dOjA7C3/xAVNHHEQk344baeoePBdjA6zPQtFL2Ks="}]}},"0.1.1":{"name":"helper-resolve","description":"Template helper to resolve the path to a file in node_modules. This is mostly useful during development.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/helper-resolve","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/helper-resolve"},"bugs":{"url":"https://github.com/jonschlinkert/helper-resolve/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"lodash":"^3.2.0","resolve":"^1.1.0"},"devDependencies":{"handlebars":"^3.0.0","jquery":"^2.1.3","mocha":"*","resolve":"^1.1.0","should":"*","template":"^0.9.3"},"keywords":[],"gitHead":"86bab4d25d7a0ce6f27e7a8f4ff6c2f1700022bf","_id":"helper-resolve@0.1.1","_shasum":"596e9f00f3aeaac1f25689821cebbee023360ca5","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"596e9f00f3aeaac1f25689821cebbee023360ca5","tarball":"https://registry.npmjs.org/helper-resolve/-/helper-resolve-0.1.1.tgz","integrity":"sha512-FQ0gqMpnK0B+Pzhnvp0k/5WvcIaeJrvBTW6I5vpKHoNSUztu/xMYNmxCfuUEftVQ+NPpFHkchRrUR3O73xG/Hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlHdCoQtkPcA2MIvN1kkIxboS52KuOHzp8kXqsYEIXUQIhAKxYWdVlo2qtXOuvqbtDmKQpS+XmXZ71V2AYwXmcGY9/"}]}},"0.1.2":{"name":"helper-resolve","description":"Template helper to resolve the path to a file in node_modules. This is mostly useful during development.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/helper-resolve","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/helper-resolve"},"bugs":{"url":"https://github.com/jonschlinkert/helper-resolve/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"lodash":"^3.2.0","resolve":"^1.1.0"},"devDependencies":{"handlebars":"^3.0.0","jquery":"^2.1.3","mocha":"*","resolve":"^1.1.0","should":"*","template":"^0.9.3"},"keywords":[],"gitHead":"c89dca5e442a61263c61dcb43d687f1971714558","_id":"helper-resolve@0.1.2","_shasum":"f1dd91bd298204248914e22088f61099c278d1a6","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"f1dd91bd298204248914e22088f61099c278d1a6","tarball":"https://registry.npmjs.org/helper-resolve/-/helper-resolve-0.1.2.tgz","integrity":"sha512-Cpev2e7uxBClta7tg7Y/1C5k+vbpVMKU9X8eyEHdF+9feJrMcPC3KrYPnEIFpnZaQuGkyej4xVXMQHfsxC00fw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmArjAfpCrkT/tMgLAcx3lTRSjMu9zgLlCXk1IMZfRlQIhAJqE6+27rT+xhvfE+pEkEOYYvqe87X1Rc3q2vwsZEVnz"}]}},"0.2.0":{"name":"helper-resolve","description":"Template helper to resolve the path to a file in node_modules. This is mostly useful during development.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/helper-resolve","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/helper-resolve"},"bugs":{"url":"https://github.com/jonschlinkert/helper-resolve/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"chalk":"^1.0.0","lodash":"^3.2.0","relative":"^2.0.0"},"devDependencies":{"handlebars":"^3.0.0","jquery":"^2.1.3","mocha":"*","resolve":"^1.1.0","should":"*","template":"^0.9.3"},"keywords":[],"gitHead":"c89dca5e442a61263c61dcb43d687f1971714558","_id":"helper-resolve@0.2.0","_shasum":"8d69f2c0b36b4bf15e74bb8abc47475e5d724c76","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"8d69f2c0b36b4bf15e74bb8abc47475e5d724c76","tarball":"https://registry.npmjs.org/helper-resolve/-/helper-resolve-0.2.0.tgz","integrity":"sha512-EOwdKZE7khQoVeLzwVijK9izWVTUcutGsAWSVL0tw9i55cFky7LgMhvS3uR1lLHSBWzKmbqroiV3pWgZ1uQMxQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFeZw699n7GXtS6kH21cLnEnEXybHlcKkGtFGoh5jtpDAiBfXTPFJFV/+I0aYie3ExLECCetipoj18NrJuQmiNaPXg=="}]}},"0.3.0":{"name":"helper-resolve","description":"Template helper to resolve the path to a file in node_modules. This is mostly useful during development.","version":"0.3.0","homepage":"https://github.com/jonschlinkert/helper-resolve","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/helper-resolve"},"bugs":{"url":"https://github.com/jonschlinkert/helper-resolve/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"chalk":"^1.0.0","clone-deep":"^0.1.1","relative":"^3.0.0"},"devDependencies":{"engine-lodash":"^0.6.2","handlebars":"^3.0.1","jquery":"^2.1.3","mocha":"*","should":"*","template":"^0.12.6"},"keywords":[],"gitHead":"583ca1d0107f7656beed3545143f027c0f2170b8","_id":"helper-resolve@0.3.0","_shasum":"d1e8545c43c85cbef79f285b52b2cb58f9b4666f","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"d1e8545c43c85cbef79f285b52b2cb58f9b4666f","tarball":"https://registry.npmjs.org/helper-resolve/-/helper-resolve-0.3.0.tgz","integrity":"sha512-sZcxxZT6HYWdaoRjIC25UrAnbSBBOdUAD/qvVanxk2/YEBGRS7iK0bCxKIDi36/Z25peY+1Th4gGjVAkdOE7kw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG+wDLecXrGT4wA5iZ3rmjo5aFi5BkdupT3OEth7OK/KAiEA0RK96zFBR532r520GvVNs/+KqM3/dHkzsRJh6rxuLOM="}]}},"0.3.1":{"name":"helper-resolve","description":"Template helper to resolve the path to a file in node_modules. This is mostly useful during development.","version":"0.3.1","homepage":"https://github.com/jonschlinkert/helper-resolve","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/helper-resolve"},"bugs":{"url":"https://github.com/jonschlinkert/helper-resolve/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"chalk":"^1.0.0","clone-deep":"^0.1.1","relative":"^3.0.0"},"devDependencies":{"engine-lodash":"^0.6.2","handlebars":"^3.0.1","jquery":"^2.1.3","mocha":"*","should":"*","template":"^0.12.6"},"keywords":[],"gitHead":"583ca1d0107f7656beed3545143f027c0f2170b8","_id":"helper-resolve@0.3.1","_shasum":"6906c806c48b593afcd1b2248d7a55d9c42f9d70","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"6906c806c48b593afcd1b2248d7a55d9c42f9d70","tarball":"https://registry.npmjs.org/helper-resolve/-/helper-resolve-0.3.1.tgz","integrity":"sha512-RzaEBQRLSNway+vqKgeuiAVu1NwYYF4JKjDrKxY3gdpf6j62S2QzPHdOds91Wgb2jwwOiu2pjVDOIBnnbgptoQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHfMWAQcVqMxziJpcavKDOw7Rff/TwuxBuBgFf/y0H4eAiA1ykankyPeO8H0JkjVyRXtxTbfUSpXK7bFx/whI5Seug=="}]}}},"readme":"# helper-resolve [![NPM version](https://badge.fury.io/js/helper-resolve.svg)](http://badge.fury.io/js/helper-resolve)  [![Build Status](https://travis-ci.org/jonschlinkert/helper-resolve.svg)](https://travis-ci.org/jonschlinkert/helper-resolve) \n\n> Template helper to resolve the path to a file in node_modules. This is mostly useful during development.\n\nRefactored to return an object, so the results of the helper can be passed to other helpers that require more information.\n\n## Install with [npm](npmjs.org)\n\n```bash\nnpm i helper-resolve --save\n```\n\n## Usage\n\n```js\nvar resolve = require('helper-resolve');\nvar Handlebars = require('handlebars');\n\nhandlebars.registerHelper('resolve', function (name, key) {\n  return resolve.sync(fp)[typeof key === 'string' ? key : 'main'];\n});\nhandlebars.compile('<script src=\\\"{{resolve \"jquery\" \"main\"}}\\\"></script>')().\n//=> '<script src=\"node_modules/jquery/dist/jquery.js\"></script>'\n\nhandlebars.compile('{{resolve \"jquery\" \"homepage\"}}')().\n//=> 'http://jquery.com'\n```\n\n## Assemble example\n\nRegister the helper with [assemble] v0.6.x to use with any template engine:\n\n```js\nvar assemble = require('assemble');\nassemble.helper('resolve', function (name, key) {\n  return resolve.sync(fp)[typeof key === 'string' ? key : 'main'];\n});\n```\n\n**async helper**\n\n```js\nassemble.asyncHelper('resolve', function (name, key, cb) {\n  if (typeof key === 'function') {\n    cb = key;\n    key = 'main';\n  }\n\n  resolve(name, function (err, res) {\n    cb(null, res[key]);\n  });\n});\n```\n\n## Run tests\nInstall dev dependencies:\n\n```bash\nnpm i -d && npm test\n```\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/helper-resolve/issues)\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) \n\n## License\nCopyright (c) 2015 Jon Schlinkert  \nReleased under the MIT license\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on April 19, 2015._\n\n[assemble]: https://github.com/assemble/assemble\n","maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2022-06-18T20:08:22.691Z","created":"2015-02-15T11:28:46.658Z","0.1.0":"2015-02-15T11:28:46.658Z","0.1.1":"2015-02-22T00:43:10.298Z","0.1.2":"2015-02-23T19:54:36.579Z","0.2.0":"2015-02-27T16:16:44.082Z","0.3.0":"2015-04-19T07:24:25.746Z","0.3.1":"2015-04-19T07:34:40.639Z"},"homepage":"https://github.com/jonschlinkert/helper-resolve","keywords":[],"repository":{"type":"git","url":"https://github.com/jonschlinkert/helper-resolve"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"bugs":{"url":"https://github.com/jonschlinkert/helper-resolve/issues"},"license":"MIT","readmeFilename":"README.md"}