Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

junk

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

junk - npm Package Compare versions

Comparing version 0.2.2 to 0.3.0

index.js

55

package.json
{
"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)
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