points by paradite 10 years 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/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

pjc50 10 years ago

It's a good job they didn't pick the Anarchists' Cookbook.

aaronharnly 10 years ago

Very nice! The file can also be found by searching for "Saran finds some mischief", which fees like an apt phrase.

  • tim333 10 years ago

    Satan, I think you'll find.

zuck9 10 years ago

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?

  • neurostimulant 10 years ago

    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.

  • sotojuan 10 years ago

    Just ignore your whole dev/code folder from Spotlight. It's not a good way to get to it anyway.

    • douche 10 years ago

      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.

      • emodendroket 10 years ago

        I like Agent Ransack on Windows; much faster than the regular search. I've never looked into how it works.

heydenberk 10 years ago

I have 16 copies on my work computer.

  • pandler 10 years ago

    I have 94 copies.

    • Arnt 10 years ago

      Think of it as 94 NPM upvotes.

sotojuan 10 years ago

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.

percept 10 years ago

Wasteful yet subversive

  • jabberlope 10 years ago

    I don't know about you but I think the world can spare an extra 29kb.