🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

helper-lookup-deps

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

helper-lookup-deps

Collection of template helpers for the methods in lookup-deps.

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

helper-lookup-deps NPM version Build Status

Collection of template helpers for the methods in lookup-deps.

Install with npm

npm i helper-lookup-deps --save

Example usage

Handlebars:

var lookup = require('helper-lookup-deps');

Handlebars

Register the helper:

var lookup = require('helper-lookup-deps');
handlebars.registerHelper('links', lookup.links);

Use the helper;

<!-- generate links to all related projects -->
{{links}}

<!-- pass an array on the context to generate 
links to only specified projects -->
{{links links}}

Template, Verb, or Assemble

Replace app with whatever you're using

Register the helper:

var lookup = require('helper-lookup-deps');
app.helper('links', lookup.links);

Use the helper

// links to all related projects
{%= links() %}

// links to only specified projects
{%= links(['arr-diff']) %}

Running tests

Install dev dependencies:

npm i -d && npm test

Contributing

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

To request or contribute a helper to the github.com/helpers org, please read this contributing guide first.

Author

Jon Schlinkert

License

Copyright (c) 2015 Jon Schlinkert
Released under the MIT license

This file was generated by verb-cli on February 26, 2015.

Keywords

docs

FAQs

Package last updated on 26 Feb 2015

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