Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including ignore-by-default with all npm packages installed. Try it out:

var ignoreByDefault = require("ignore-by-default")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

ignore-by-default v2.0.0

A list of directories you should ignore by default

ignore-by-default

This is a package aimed at Node.js development tools. It provides a list of directories that should probably be ignored by such tools, e.g. when watching for file changes.

It's used by AVA and nodemon.

Please contribute!

Installation

npm install ignore-by-default

Usage

The ignore-by-default module exports a directories() function, which will return an array of directory names. These are the ones you should ignore.

// ['.git', '.sass_cache', …]
const ignoredDirectories = require('ignore-by-default').directories()
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free