Socket
Socket
Sign inDemoInstall

parse-gitignore

Package Overview
Dependencies
2
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.1 to 0.4.0

README.md

6

index.js
/*!
* parse-gitignore <https://github.com/jonschlinkert/parse-gitignore>
*
* Copyright (c) 2015, Jon Schlinkert.
* Licensed under the MIT License.
* Copyright (c) 2015, 2017, Jon Schlinkert.
* Released under the MIT License.
*/

@@ -15,3 +15,2 @@

function gitignore(fp, patterns, options) {

@@ -33,3 +32,2 @@ if (!fp || !fs.existsSync(fp)) return [];

var arr = unique(gitignore.parse(lines, options));
arr.sort();

@@ -36,0 +34,0 @@ if (options.cache !== false) {

{
"name": "parse-gitignore",
"description": "Parse a gitignore file into an array of patterns. Comments and empty lines are stripped.",
"version": "0.3.1",
"version": "0.4.0",
"homepage": "https://github.com/jonschlinkert/parse-gitignore",
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
"contributors": [
"Jon Schlinkert <jon.schlinkert@sellside.com> (http://twitter.com/jonschlinkert)",
"Michael Mayer <michael@schnittstabil.de> (http://schnittstabil.de)"
],
"repository": "jonschlinkert/parse-gitignore",

@@ -13,5 +17,3 @@ "bugs": {

"files": [
"index.js",
"LICENSE",
"README.md"
"index.js"
],

@@ -26,9 +28,11 @@ "main": "index.js",

"dependencies": {
"array-unique": "^0.2.1",
"is-glob": "^2.0.1"
"array-unique": "^0.3.2",
"is-glob": "^3.1.0"
},
"devDependencies": {
"gulp-format-md": "^0.1.9",
"mocha": "^2.5.3",
"should": "^9.0.2"
"glob-fs": "^0.1.6",
"gulp-format-md": "^0.1.11",
"micromatch": "^2.3.11",
"mocha": "^3.2.0",
"should": "^11.2.1"
},

@@ -49,7 +53,7 @@ "keywords": [

],
"lint": {
"reflinks": true
},
"related": {
"list": []
"list": [
"parse-author",
"parse-git-config"
]
},

@@ -59,4 +63,7 @@ "reflinks": [

"verb-generate-readme"
]
],
"lint": {
"reflinks": true
}
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc