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.

5 个版本
安装
npm install app-name
yarn add app-name
pnpm add app-name
bun add app-name
README

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.

版本列表
0.2.0 2014-10-12
0.1.4 2014-06-02
0.1.3 2014-06-02
0.1.1 2014-05-25
0.1.0 2014-05-11