🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

helper-compile-async

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

helper-compile-async

Convenience method to compile async helpers and add common functionality to use with async-helpers.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

helper-compile-async NPM version NPM monthly downloads NPM total downloads Linux Build Status

Convenience method to compile async helpers and add common functionality to use with async-helpers.

Install

Install with npm:

$ npm install --save helper-compile-async

Usage

var compile = require('helper-compile-async');

API

compile

Compile a helper function to add convenience methods for working with async-helpers.

Params

  • helper {Function}: Helper function to be called with a modified options.fn and options.inverse function if available.
  • returns {Function}: Compiled helper function suitable to be registered with a template engine.

Example

// ensures that asyncHelpers.resolveIds is called on the
// rendered content from `options.fn` before returning
var helper = compile(function(options, cb) {
  return options.fn(this, cb);
});

About

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Please read the contributing guide for advice on opening issues, pull requests, and coding standards.

Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Running tests

Install dev dependencies:

$ npm install && npm test

Author

Brian Woodward

License

Copyright © 2017, Brian Woodward. MIT

This file was generated by verb-generate-readme, v0.4.2, on February 05, 2017.

Keywords

assemble

FAQs

Package last updated on 06 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts