5 ms·
Interesting fact that I recently came across: bower and many other npm packages, has some dependencies that eventually depends on a package called "wordwrap".
by paradite 10y ago
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/idleness.txt 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 https://github.com/substack/node-wordwrap/pull/14
- heydenberk 10y agoI have 16 copies on my work computer.
- pandler 10y agoI have 94 copies.
- Arnt 10y agoThink of it as 94 NPM upvotes.
- marc_omorain 10y agoI have 8 copies.
- percept 10y agoWasteful yet subversive
- jabberlope 10y agoI don't know about you but I think the world can spare an extra 29kb.
- pjc50 10y agoIt's a good job they didn't pick the Anarchists' Cookbook.
- manimalcruelty 10y ago0 copies. too lazy to work.
- zuck9 10y agoI 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?
- neurostimulant 10y agoI 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.
- sotojuan 10y agoJust ignore your whole dev/code folder from Spotlight. It's not a good way to get to it anyway.
- douche 10y agoIs 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.
- austinsharp 10y agoThe indexing itself is great - I use Everything [1] heavily. The client on the other hand? It's baaad. [1] http://www.voidtools.com/ http://www.voidtools.com/
- emodendroket 10y agoI like Agent Ransack on Windows; much faster than the regular search. I've never looked into how it works.
- aaronharnly 10y agoVery nice! The file can also be found by searching for "Saran finds some mischief", which fees like an apt phrase.
- tim333 10y agoSatan, I think you'll find.
- sotojuan 10y agoI 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.