Interesting fact that I recently came across:
bower and many other npm packages, has some dependencies that eventually depends on a package called "wordwrap".
And this "wordwrap" package somehow has its test folder exposed in npm.
The result:
Every single person using bower would have one or more copies of In Praise of Idleness by Bertrand Russell on your local machine, depending on how many of your projects has a npm dependency of this package:
https://github.com/substack/node-wordwrap/blob/master/test/i...
Don't believe me? Try searching for "In Praise of Idleness" in Spotlight.
Edit: Someone had already sent a PR about this on GitHub: https://github.com/substack/node-wordwrap/pull/14
It's a good job they didn't pick the Anarchists' Cookbook.
Very nice! The file can also be found by searching for "Saran finds some mischief", which fees like an apt phrase.
Satan, I think you'll find.
I used to `touch node_modules/.metadata_never_index` to prevent Spotlight from wasting disk cycles by indexing that stupid folder. After searching "In Praise of Idleness", it doesn't seem to prevent it. :/
Anyone knows how to prevent all node_modules folders from getting indexed by Spotlight?
I ended up excluding the whole projects folder to prevent spotlight from indexing any source code. I never use spotlight to search any of my code anyway.
Just ignore your whole dev/code folder from Spotlight. It's not a good way to get to it anyway.
Is there an indexer in any operating system that's worth the aggravation? Windows Explorer's is hot garbage, and I've never been real impressed with any of the ones in my various Linux distributions.
Old-school grepping or using Notepad++'s find in files feature is far away the best method I've come across, which is... kinda sad.
The indexing itself is great - I use Everything [1] heavily.
The client on the other hand? It's baaad.
[1] http://www.voidtools.com/
I like Agent Ransack on Windows; much faster than the regular search. I've never looked into how it works.
I have 16 copies on my work computer.
I have 94 copies.
Think of it as 94 NPM upvotes.
I have 8 copies.
I wouldn't be hopeful about that PR. Substack is awesome but he's really bad at replying to notifications because of the tons of modules he has.
Wasteful yet subversive
I don't know about you but I think the world can spare an extra 29kb.
0 copies. too lazy to work.