package.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "name": "junk",
  3. "version": "1.0.1",
  4. "description": "Filter out OS junk files like .DS_Store and Thumbs.db",
  5. "license": "MIT",
  6. "repository": {
  7. "type": "git",
  8. "url": "git://github.com/sindresorhus/junk"
  9. },
  10. "author": {
  11. "name": "Sindre Sorhus",
  12. "email": "sindresorhus@gmail.com",
  13. "url": "http://sindresorhus.com"
  14. },
  15. "engines": {
  16. "node": ">=0.10.0"
  17. },
  18. "scripts": {
  19. "test": "node test.js"
  20. },
  21. "files": [
  22. "index.js"
  23. ],
  24. "keywords": [
  25. "junk",
  26. "trash",
  27. "garbage",
  28. "files",
  29. "os",
  30. "ignore",
  31. "exclude",
  32. "filter",
  33. "temp",
  34. "tmp"
  35. ],
  36. "devDependencies": {
  37. "ava": "0.0.3"
  38. },
  39. "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",
  40. "readmeFilename": "readme.md",
  41. "bugs": {
  42. "url": "https://github.com/sindresorhus/junk/issues"
  43. },
  44. "homepage": "https://github.com/sindresorhus/junk",
  45. "_id": "junk@1.0.1",
  46. "_shasum": "824ef8925f02026f61bc6e6fa346b25fa8f3938b",
  47. "_from": "junk@~1.0.0",
  48. "_resolved": "https://registry.npmjs.org/junk/-/junk-1.0.1.tgz"
  49. }