معرفی شرکت ها


gulp-unused-0.2.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Opinionated gulp plugin that takes an array of method names and creates a report with many times each is used. Don't expect miracles, this is very naive.
ویژگی مقدار
سیستم عامل -
نام فایل gulp-unused-0.2.1
نام gulp-unused
نسخه کتابخانه 0.2.1
نگهدارنده ['jonschlinkert']
ایمیل نگهدارنده ['github@sellside.com']
نویسنده Jon Schlinkert
ایمیل نویسنده -
آدرس صفحه اصلی git+https://github.com/jonschlinkert/gulp-unused.git
آدرس اینترنتی https://github.com/jonschlinkert/gulp-unused
مجوز MIT
# gulp-unused [![NPM version](https://img.shields.io/npm/v/gulp-unused.svg?style=flat)](https://www.npmjs.com/package/gulp-unused) [![NPM downloads](https://img.shields.io/npm/dm/gulp-unused.svg?style=flat)](https://npmjs.org/package/gulp-unused) [![Build Status](https://img.shields.io/travis/jonschlinkert/gulp-unused.svg?style=flat)](https://travis-ci.org/jonschlinkert/gulp-unused) Opinionated gulp plugin that takes an array of method names and creates a report with many times each is used. Don't expect miracles, this is very naive. ## Install Install with [npm](https://www.npmjs.com/): ```sh $ npm install --save gulp-unused ``` ## Usage **Heads up!** The matching is naive, but it works well for quick checks. ```js var gulp = require('gulp'); var unused = require('gulp-unused'); gulp.task('unused', function() { return gulp.src(['index.js', 'lib/*.js']) .pipe(unused([options])); }); ``` ## Options ### .keys Array of method names to check for. **Example** ```js var keys = Object.keys(require('./utils')); gulp.src(['index.js', 'lib/*.js']) .pipe(unused({keys: keys})); ``` ### .utils As a more comprehensive alternative to `options.keys`, you may pass glob patterns or file paths of the files with "utils" to search for. **Example** ```js gulp.src(['index.js', 'lib/*.js']) .pipe(unused({utils: 'lib/utils.js'})); ``` ## Example usage Given the following project files: ```js // --lib/utils.js-- exports.foo = function(){}; exports.bar = function(){}; exports.baz = function(){}; // --index.js-- var utils = require('./lib/utils.js'); module.exports = function(str) { // do some "foo" and "bar" stuff, but not "baz" utils.foo(); utils.bar(); utils.bar(); }; ``` With the following `gulpfile.js`: ```js var gulp = require('gulp'); var unused = require('gulp-unused'); gulp.task('unused', function() { return gulp.src(['index.js', 'lib/*.js']) .pipe(unused({utils: 'lib/utils.js'})); }); ``` Unless `options.silent` is true, the following would be logged out: ```js Method | Times used ------ | ---------- bar | 2 foo | 1 baz | 0 ------ | --- unused | .baz ``` ## About ### Contributing Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). ### Building docs _(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_ To generate the readme and API documentation with [verb](https://github.com/verbose/verb): ```sh $ npm install -g verb verb-generate-readme && verb ``` ### Running tests Install dev dependencies: ```sh $ npm install -d && npm test ``` ### Author **Jon Schlinkert** * [github/jonschlinkert](https://github.com/jonschlinkert) * [twitter/jonschlinkert](http://twitter.com/jonschlinkert) ### License Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). Released under the [MIT license](https://github.com/jonschlinkert/gulp-unused/blob/master/LICENSE). *** _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.30, on August 21, 2016._


نیازمندی

مقدار نام
^3.1.0 arr-union
^2.0.1 extend-shallow
^0.2.1 log-utils
^1.0.1 longest
^0.4.4 matched
^1.6.1 repeat-string
^2.0.3 through2
^2.0.1 vinyl


زبان مورد نیاز

مقدار نام
6.9.2 Npm


نحوه نصب


نصب پکیج tgz gulp-unused-0.2.1:

    npm install gulp-unused-0.2.1.tgz