Socket
Socket
Sign inDemoInstall

ignore

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ignore - npm Package Compare versions

Comparing version 3.1.5 to 3.2.0

8

ignore.js

@@ -107,2 +107,7 @@ 'use strict';

}, {
key: 'ignores',
value: function ignores(path) {
return !this._filter(path);
}
}, {
key: '_createRule',

@@ -134,2 +139,5 @@ value: function _createRule(pattern) {

}
// @returns `Boolean` true if the `path` is NOT ignored
}, {

@@ -136,0 +144,0 @@ key: '_filter',

2

package.json
{
"name": "ignore",
"version": "3.1.5",
"version": "3.2.0",
"description": "Ignore is a manager and filter for .gitignore rules.",

@@ -5,0 +5,0 @@ "main": "./ignore.js",

@@ -26,3 +26,3 @@ [![Build Status](https://travis-ci.org/kaelzhang/node-ignore.svg?branch=master)](https://travis-ci.org/kaelzhang/node-ignore)

const ignore = require('ignore')
let ig = ignore().add(['.abc/*', '!.abc/d/'])
const ig = ignore().add(['.abc/*', '!.abc/d/'])
```

@@ -33,3 +33,3 @@

```js
let paths = [
const paths = [
'.abc/a.js', // filtered out

@@ -169,2 +169,12 @@ '.abc/d/e.js' // included

### .ignores(pathname)
> new in 3.2.0
Returns `Boolean` whether `pathname` should be ignored.
```js
ig.ignores('.abc/a.js') // true
```
****

@@ -171,0 +181,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc