verb-tag-appname

0.1.3 • Public • Published

verb-tag-appname NPM version

Attempts to derive the "actual" name of a grunt or gulp plugin, handlebars helper, tag, filter, yeoman generator or any other module by stripping certain words from the title, allowing it to be used in templates. For example, the "actual" name of generator-foo would foo.

Install

Install with npm:

npm i verb-tag-appname --save-dev

Usage

If you're using verb-cli, you will need to define ['verb-tag-appname'] in the tags property in the front matter of your project's .verbrc.md (or docs/README.tmpl.md). This registers the tag with verb:

---
tags: ['verb-tag-appname']
---

In your templates, you can now use the tag like this:

{%= appname(name) %}

(Also note that front-matter is just one way to register verb tags, filters, and plugins. See the verb documentation for more info.)

Author

Jon Schlinkert

License

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


This file was generated by verb-cli on June 01, 2014.

Readme

Keywords

Package Sidebar

Install

npm i verb-tag-appname

Weekly Downloads

5

Version

0.1.3

License

none

Last publish

Collaborators

  • doowb
  • jonschlinkert