Create variable names from module names. Like
gulp-jshint
=>jshint
. Useful for yeoman generators, or for loaders for gulp, assemble, and grunt plugins.
Install with npm:
npm i app-name --save-dev
npm test
var appname = require('app-name');
appname('gulp-jshint', 'gulp');
//=> jshint
appname('assemble-permalinks', 'assemble');
//=> permalinks
appname('handlebars-helper-foo', ['handlebars', 'helper']);
//=> foo
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Jon Schlinkert
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on October 12, 2014.