ignorable

2018-10-13 admin

ignorable是什么

什么是ignorable,Detects whether a file in a package can be ignored

ignorable使用教程帮助文档

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

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-42553.html

文章标题:ignorable

回到顶部