1.1.2 • Published 6 years ago

ignorable v1.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

ignorable

Detects whether a file in a package can be ignored

npm version Build Status

Installation

npm i -S ignorable

Usage

const ignorable = require('ignorable')

console.log(ignorable('readme.md'))
//> true

console.log(ignorable('test.js'))
//> true

console.log(ignorable.safe('test.js'))
//> false

API

ignorable(filename)

Returns whether true if the file does not influence the functionality of the package.

ignorable.safe(filename)

Safer than ignorable(). Does not return true for resources that might be dangerous to remove.

License

MIT © Zoltan Kochan

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.0

7 years ago