by paradite · 10y ago · 0 comments
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
Anyone knows how to prevent all node_modules folders from getting indexed by Spotlight?
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 client on the other hand? It's baaad.