Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

gulp-filename-hint

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-filename-hint

A gulp plugin for linting filenames

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

gulp-filename-hint

A gulp plugin for linting filenames.

Install

npm install --save-dev gulp-filename-hint

Usage

var gulp = require('gulp');
var filenameHint = require('gulp-filename-hint');

gulp.task('test', function () {
  return gulp.src('src/*.js')
    .pipe(filenameHint());
});

API

filenameHint(options)

options.regExp

Type: RegExp

Default: undefined

Only RegExp's with begin (^) and end ($) boundaries should be used.

gulp.task('test', function () {
  return gulp.src('src/*.js')
    .pipe(filenameHint({regExp: /^\w*$/}));
});

options.whiteList

Type: Array

Default: []

An array with allowed filenames. All names here will be automatically interpreted as valid ones.

gulp.task('test', function () {
  return gulp.src('src/*.js')
    .pipe(filenameHint({
      regExp: /^\w*$/,
      whiteList: ['README.md']
    }));
});

caiogondim.com  ·  GitHub @caiogondim  ·  Twitter @caio_gondim

FAQs

Package last updated on 16 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts