Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

helper-license

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

helper-license

Template helper for dynamically generating a basic, one-line license statement based on the given context, e.g. `Released under the MIT license`. Should work with any Handlebars, Lo-Dash, underscore, or any template engine that allows helper functions to

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
decreased by-94%
Maintainers
1
Weekly downloads
 
Created
Source

helper-license NPM version

Template helper for adding basic, formatted license statements. Should work with any engine.

Install

Install with npm

npm i helper-license --save

Run tests

npm test

Usage example

Add a basic license statement

{%= license() %}
//=> Released under the MIT license

Register

This should work with any engine, here are a few examples

With template

template.helper('license', require('helper-license'));

With assemble

assemble.helper('license', require('helper-license'));

With verb

verb.helper('license', require('helper-license'));

With handlebars:

var handlebars = require('handlebars');
handlebars.registerHelper('license', require('helper-license'));

Contributing

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

Author

[object Object]

License

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


This file was generated by verb on November 07, 2014.

FAQs

Package last updated on 10 Nov 2014

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc