sindresorhus

junk

Filter out OS junk files like .DS_Store and Thumbs.db

by sindresorhus

JavaScript

JavaScript90.2%
TypeScript9.8%

Commit activity

Last 12 weeks · 1 commit

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
amachang

Firstly, I'd like to express my gratitude for this library ❤️ The same as files, could we consider adding directories as junk? For context: The directory is sometimes automatically generated when creating ZIP files with the default tools on Darwin. It contains Apple-specific file attributes and metadata, primarily the files and files metadata known as resource fork information. While this directory is a bit meaningful on a Mac, it often becomes junk for users on non-Mac operating systems. Related: https://developer.apple.com/forums/thread/690457

amachang · 3y ago
dprothero

On Windows, I noticed I had and it wasn't getting filtered out because the code looks for . I could propose a PR to make the pattern , but I wonder if it should just universally ignore case?

dprothero · 3y ago
Structured data for AI agents

Repository: sindresorhus/junk. Description: Filter out OS junk files like .DS_Store and Thumbs.db Stars: 246, Forks: 15. Primary language: JavaScript. Languages: JavaScript (90.2%), TypeScript (9.8%). License: MIT. Latest release: v4.0.1 (3y ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, BendingBender, satazor, arthurvr, Borewit, dprothero, feross, Richienb, scotttrinh.