12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- {
- "name": "junk",
- "version": "1.0.1",
- "description": "Filter out OS junk files like .DS_Store and Thumbs.db",
- "license": "MIT",
- "repository": {
- "type": "git",
- "url": "git://github.com/sindresorhus/junk"
- },
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "http://sindresorhus.com"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "scripts": {
- "test": "node test.js"
- },
- "files": [
- "index.js"
- ],
- "keywords": [
- "junk",
- "trash",
- "garbage",
- "files",
- "os",
- "ignore",
- "exclude",
- "filter",
- "temp",
- "tmp"
- ],
- "devDependencies": {
- "ava": "0.0.3"
- },
- "readme": "# junk [![Build Status](https://travis-ci.org/sindresorhus/junk.svg?branch=master)](https://travis-ci.org/sindresorhus/junk)\n\n> Filter out [OS junk files](test.js) like `.DS_Store` and `Thumbs.db`\n\n\n## Install\n\n```sh\n$ npm install --save junk\n```\n\n\n## Usage\n\n```js\nvar fs = require('fs');\nvar junk = require('junk');\n\nfs.readdir('path', function (err, files) {\n\tconsole.log(files);\n\t//=> ['.DS_Store', 'test.jpg']\n\n\tconsole.log(files.filter(junk.not));\n\t//=> ['test.jpg']\n});\n```\n\n\n## API\n\n### junk.is(filename)\n\nReturns true if `filename` matches a junk file.\n\n### junk.not(filename)\n\nReturns true if `filename` doesn't match a junk file.\n\n### junk.re\n\nThe regex used for matching.\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
- "readmeFilename": "readme.md",
- "bugs": {
- "url": "https://github.com/sindresorhus/junk/issues"
- },
- "homepage": "https://github.com/sindresorhus/junk",
- "_id": "junk@1.0.1",
- "_shasum": "824ef8925f02026f61bc6e6fa346b25fa8f3938b",
- "_from": "junk@~1.0.0",
- "_resolved": "https://registry.npmjs.org/junk/-/junk-1.0.1.tgz"
- }
|