{"_id":"async-helper-base","_rev":"94537","name":"async-helper-base","description":"Used for creating template.js-compatible async helpers. Works with verb, assemble or any other template.js application.","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:31:29.000Z","created":"2015-03-22T17:01:23.655Z","0.2.0":"2015-04-19T08:57:04.558Z","0.1.5":"2015-04-19T04:36:52.342Z","0.1.4":"2015-04-01T00:50:08.686Z","0.1.3":"2015-03-29T08:58:56.798Z","0.1.2":"2015-03-23T23:34:53.539Z","0.1.1":"2015-03-22T17:08:30.967Z","0.1.0":"2015-03-22T17:01:23.655Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/async-helper-base.git"},"versions":{"0.2.0":{"name":"async-helper-base","description":"Used for creating template.js-compatible async helpers. Works with verb, assemble or any other template.js application.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/async-helper-base","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/async-helper-base.git"},"bugs":{"url":"https://github.com/jonschlinkert/async-helper-base/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/async-helper-base/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"chalk":"^1.0.0","lodash":"^3.5.0"},"devDependencies":{"engine-lodash":"^0.5.0","mocha":"*","should":"*","template":"^0.12.6"},"keywords":["assemble","async","helper","template","verb"],"gitHead":"7f36651f9c97c375cb3f56788f571c3196fab43d","_id":"async-helper-base@0.2.0","_shasum":"9e83399836977d894451ad41b9d855be18823933","_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":"9e83399836977d894451ad41b9d855be18823933","size":3275,"noattachment":false,"key":"/async-helper-base/-/async-helper-base-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-helper-base/download/async-helper-base-0.2.0.tgz"},"directories":{},"publish_time":1429433824558,"_cnpm_publish_time":1429433824558,"_hasShrinkwrap":false},"0.1.5":{"name":"async-helper-base","description":"Used for creating template.js-compatible async helpers. Works with verb, assemble or any other template.js application.","version":"0.1.5","homepage":"https://github.com/jonschlinkert/async-helper-base","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/async-helper-base.git"},"bugs":{"url":"https://github.com/jonschlinkert/async-helper-base/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/async-helper-base/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"chalk":"^1.0.0","lodash":"^3.5.0"},"devDependencies":{"engine-lodash":"^0.5.0","mocha":"*","should":"*","template":"^0.12.6"},"keywords":["assemble","async","helper","template","verb"],"gitHead":"a8f034f8d213e2f11cbf51095e899a43bb46d639","_id":"async-helper-base@0.1.5","_shasum":"598f24351f7b67c9ea1a14a0ed6a1ddb107985a9","_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":"598f24351f7b67c9ea1a14a0ed6a1ddb107985a9","size":3208,"noattachment":false,"key":"/async-helper-base/-/async-helper-base-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-helper-base/download/async-helper-base-0.1.5.tgz"},"directories":{},"publish_time":1429418212342,"_cnpm_publish_time":1429418212342,"_hasShrinkwrap":false},"0.1.4":{"name":"async-helper-base","description":"Used for creating template.js-compatible async helpers. Works with verb, assemble or any other template.js application.","version":"0.1.4","homepage":"https://github.com/jonschlinkert/async-helper-base","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/async-helper-base.git"},"bugs":{"url":"https://github.com/jonschlinkert/async-helper-base/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/async-helper-base/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"chalk":"^1.0.0","lodash":"^3.5.0"},"devDependencies":{"engine-lodash":"^0.5.0","mocha":"*","should":"*","template":"^0.12.6"},"keywords":["assemble","async","helper","template","verb"],"gitHead":"e4cdcd199075a1d0aaff311dafbc89f71281d032","_id":"async-helper-base@0.1.4","_shasum":"fee0eb4a2ec1d3bb2f81780b275a7d8fcf1ecfe8","_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":"fee0eb4a2ec1d3bb2f81780b275a7d8fcf1ecfe8","size":3205,"noattachment":false,"key":"/async-helper-base/-/async-helper-base-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-helper-base/download/async-helper-base-0.1.4.tgz"},"directories":{},"publish_time":1427849408686,"_cnpm_publish_time":1427849408686,"_hasShrinkwrap":false},"0.1.3":{"name":"async-helper-base","description":"Used for creating template.js-compatible async helpers. Works with verb, assemble or any other template.js application.","version":"0.1.3","homepage":"https://github.com/jonschlinkert/async-helper-base","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/async-helper-base.git"},"bugs":{"url":"https://github.com/jonschlinkert/async-helper-base/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/async-helper-base/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"chalk":"^1.0.0","lodash":"^3.5.0"},"devDependencies":{"engine-lodash":"^0.5.0","mocha":"*","should":"*","template":"^0.12.6"},"keywords":["assemble","async","helper","template","verb"],"gitHead":"8df074e27fb84e4a8fbdcc64057b21b209ea2d5a","_id":"async-helper-base@0.1.3","_shasum":"437668ec48d69aea651aef84aae4ee9d1adf2712","_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":"437668ec48d69aea651aef84aae4ee9d1adf2712","size":3118,"noattachment":false,"key":"/async-helper-base/-/async-helper-base-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-helper-base/download/async-helper-base-0.1.3.tgz"},"directories":{},"publish_time":1427619536798,"_cnpm_publish_time":1427619536798,"_hasShrinkwrap":false},"0.1.2":{"name":"async-helper-base","description":"Used for creating template.js-compatible async helpers. Works with verb, assemble or any other template.js application.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/async-helper-base","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/async-helper-base.git"},"bugs":{"url":"https://github.com/jonschlinkert/async-helper-base/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/async-helper-base/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"chalk":"^1.0.0","lodash":"^3.5.0","template":"^0.12.6"},"devDependencies":{"engine-lodash":"^0.5.0","mocha":"*","should":"*"},"keywords":["assemble","async","helper","template","verb"],"gitHead":"0792fcb152d02457f507da937a8f4acd668c7c06","_id":"async-helper-base@0.1.2","_shasum":"391cd8a08fc996036a7b677a18779ebb06f6949b","_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":"391cd8a08fc996036a7b677a18779ebb06f6949b","size":3143,"noattachment":false,"key":"/async-helper-base/-/async-helper-base-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-helper-base/download/async-helper-base-0.1.2.tgz"},"directories":{},"publish_time":1427153693539,"_cnpm_publish_time":1427153693539,"_hasShrinkwrap":false},"0.1.1":{"name":"async-helper-base","description":"Used for creating template.js-compatible async helpers. Works with verb, assemble or any other template.js application.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/async-helper-base","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/async-helper-base.git"},"bugs":{"url":"https://github.com/jonschlinkert/async-helper-base/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/async-helper-base/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"chalk":"^1.0.0","lodash":"^3.5.0"},"devDependencies":{"engine-lodash":"^0.5.0","mocha":"*","should":"*","template":"^0.12.5"},"keywords":[],"gitHead":"c3783ac4057c6096c2434836873bc3bd8d39be89","_id":"async-helper-base@0.1.1","_shasum":"cafe5b0cda5782e724e2a0f40454a9120f547b03","_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":"cafe5b0cda5782e724e2a0f40454a9120f547b03","size":3096,"noattachment":false,"key":"/async-helper-base/-/async-helper-base-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-helper-base/download/async-helper-base-0.1.1.tgz"},"directories":{},"publish_time":1427044110967,"_cnpm_publish_time":1427044110967,"_hasShrinkwrap":false},"0.1.0":{"name":"async-helper-base","description":"Base for easily creating async helpers for verb, assemble, or any other application built on template.js.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/async-helper-base","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/async-helper-base.git"},"bugs":{"url":"https://github.com/jonschlinkert/async-helper-base/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/async-helper-base/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"chalk":"^1.0.0","lodash":"^3.5.0"},"devDependencies":{"engine-lodash":"^0.5.0","mocha":"*","should":"*","template":"^0.12.5"},"keywords":[],"gitHead":"ff067e3b3479669000a84ff024e982655dd50c97","_id":"async-helper-base@0.1.0","_shasum":"96822c140d9e3023d5bca651d9a2ad34ee2d3d97","_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":"96822c140d9e3023d5bca651d9a2ad34ee2d3d97","size":3092,"noattachment":false,"key":"/async-helper-base/-/async-helper-base-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-helper-base/download/async-helper-base-0.1.0.tgz"},"directories":{},"publish_time":1427043683655,"_cnpm_publish_time":1427043683655,"_hasShrinkwrap":false}},"readme":"# async-helper-base [![NPM version](https://badge.fury.io/js/async-helper-base.svg)](http://badge.fury.io/js/async-helper-base)\n\n> Used for creating template.js-compatible async helpers. Works with verb, assemble or any other template.js application.\n\n## Install with [npm](npmjs.org)\n\n```bash\nnpm i async-helper-base --save\n```\n\n## Usage\n\nEasily create async helpers.\n\n**Example**\n\n```js\nvar Template = require('template');\nvar template = new Template();\nvar helper = require('async-helper-base');\n```\n\n**Create a custom async helper**\n\npass the instance of `template` to create the arbitrarily-named `badge` helper.\n\n```js\ntemplate.asyncHelper('badge', helper(template)('badge'));\n```\n\n**Create a custom template type**\n\n```js\ntemplate.create('badge');\n```\n\n**Load badge templates**\n\nWhen we created the `badge` template type, a new `.badge()` method was created for loading templates. Let's use that now:\n\n```js\n// one at a time\ntemplate.badge('travis', {content: '[![Build Status](http://img.shields.io/travis/<%= name %>.svg)](https://travis-ci.org/<%= name %>)'});\n\n// or a glob\ntemplate.badges('foo/*.md');\n```\n\n**Render the template**\n\nLast, render the template using the custom `badge` helper created from this lib:\n\n```js\ntemplate.render('<%= badge(\"travis\") %>', {name: 'verb'}, function (err, res) {\n  if (err) console.log(err);\n  //=> '[![Build Status](http://img.shields.io/travis/verb.svg)](https://travis-ci.org/verb)'\n  done();\n});\n```\n\n## Related projects\n * [template](https://github.com/jonschlinkert/template): Render templates from any engine. Make custom template types, use layouts on pages, partials or any custom template type, custom delimiters, helpers, middleware, routes, loaders, and lots more. Powers Assemble v0.6.0, Verb v0.3.0 and your application.\n * [verb](https://github.com/assemble/verb): Verb makes it dead simple to generate markdown documentation, using simple templates, with zero configuration required. A project without documentation is like a project that doesn't exist.\n * [assemble](http://assemble.io): Static site generator for Grunt.js, Yeoman and Node.js. Used by Zurb Foundation, Zurb Ink, H5BP/Effeckt, Less.js / lesscss.org, Topcoat, Web Experience Toolkit, and hundreds of other projects to build sites, themes, components, documentation, blogs and gh  \n\n## Running 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/async-helper-base/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","_attachments":{},"homepage":"https://github.com/jonschlinkert/async-helper-base","bugs":{"url":"https://github.com/jonschlinkert/async-helper-base/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/async-helper-base/blob/master/LICENSE"}}