Comparing version 0.2.2 to 0.3.0
{ | ||
"name": "junk", | ||
"version": "0.2.2", | ||
"description": "Helps you filter out OS junk files like .DS_Store and Thumbs.db", | ||
"version": "0.3.0", | ||
"description": "Filter out OS junk files like .DS_Store and Thumbs.db", | ||
"license": "MIT", | ||
"repository": "sindresorhus/junk", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "http://sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=0.10.0" | ||
}, | ||
"scripts": { | ||
"test": "mocha" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
@@ -11,36 +27,11 @@ "junk", | ||
"os", | ||
"operating system", | ||
"ignore", | ||
"exclude", | ||
"filter" | ||
"filter", | ||
"temp", | ||
"tmp" | ||
], | ||
"homepage": "https://github.com/sindresorhus/junk", | ||
"bugs": "https://github.com/sindresorhus/junk/issues", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "http://sindresorhus.com" | ||
}, | ||
"main": "junk.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/sindresorhus/junk.git" | ||
}, | ||
"scripts": { | ||
"test": "mocha" | ||
}, | ||
"devDependencies": { | ||
"mocha": "~1.15.1" | ||
}, | ||
"engines": { | ||
"node": ">=0.8.0" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT" | ||
} | ||
], | ||
"files": [ | ||
"junk.js" | ||
] | ||
"mocha": "*" | ||
} | ||
} |
@@ -1,12 +0,13 @@ | ||
# junk [![Build Status](https://secure.travis-ci.org/sindresorhus/junk.png?branch=master)](http://travis-ci.org/sindresorhus/junk) | ||
# junk [![Build Status](https://travis-ci.org/sindresorhus/junk.png?branch=master)](https://travis-ci.org/sindresorhus/junk) | ||
Helps you filter out [OS junk files](test.js) like .DS_Store and Thumbs.db | ||
> Filter out [OS junk files](test.js) like `.DS_Store` and `Thumbs.db` | ||
## Install | ||
## Getting started | ||
```bash | ||
$ npm install --save junk | ||
``` | ||
Install: `npm install --save junk` | ||
## Example | ||
@@ -20,6 +21,6 @@ | ||
console.log(files); | ||
// ['.DS_Store', 'test.jpg'] | ||
//=> ['.DS_Store', 'test.jpg'] | ||
console.log(files.filter(junk.isnt)); | ||
// ['test.jpg'] | ||
console.log(files.filter(junk.not)); | ||
//=> ['test.jpg'] | ||
}); | ||
@@ -29,5 +30,4 @@ ``` | ||
## Documentation | ||
## API | ||
### junk.is(filename) | ||
@@ -37,8 +37,6 @@ | ||
### junk.not(filename) | ||
### junk.isnt(filename) | ||
Returns true if `filename` doesn't match any of the `junk.rules`. | ||
### junk.rules | ||
@@ -51,2 +49,2 @@ | ||
MIT License • © [Sindre Sorhus](http://sindresorhus.com) | ||
[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2429
2
47
1