app-name
Create variable names from module names. Like `gulp-jshint` => `jshint`. Useful for yeoman generators, or for loaders for gulp, assemble, and grunt plugins.
Last updated 12 years ago by jonschlinkert .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install app-name 
SYNC missed versions from official npm registry.

app-name NPM version

Create variable names from module names. Like gulp-jshint => jshint. Useful for yeoman generators, or for loaders for gulp, assemble, and grunt plugins.

Install

Install with npm:

npm i app-name --save-dev

Run tests

npm test

Usage

var appname = require('app-name');

appname('gulp-jshint', 'gulp');
//=> jshint

appname('assemble-permalinks', 'assemble');
//=> permalinks

appname('handlebars-helper-foo', ['handlebars', 'helper']);
//=> foo

Contributing

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

Author

Jon Schlinkert

License

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


This file was generated by verb-cli on October 12, 2014.

Current Tags

  • 0.2.0                                ...           latest (12 years ago)

5 Versions

  • 0.2.0                                ...           12 years ago
  • 0.1.4                                ...           12 years ago
  • 0.1.3                                ...           12 years ago
  • 0.1.1                                ...           13 years ago
  • 0.1.0                                ...           13 years ago
Maintainers (1)
Downloads
Total 21
Today 0
This Week 4
This Month 12
Last Day 2
Last Week 1
Last Month 4
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE