Licence
MIT
Version
1.1.2
Deps
0
Vulns
0
Weekly
0
ignorable
Detects whether a file in a package can be ignored
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.