4 ms·
well, the rate-map at least includes a function: https://github.com/sindresorhus/shebang-regex https://github.com/sindresorhus/shebang-regex
by fock 7y ago
well, the rate-map at least includes a function: https://github.com/sindresorhus/shebang-regex https://github.com/sindresorhus/shebang-regex
- hu3 7y agoA dependency for /^#!(.*)/; With 8.6 mil downloads and 71 dependents... https://www.npmjs.com/package/shebang-regex https://www.npmjs.com/package/shebang-regex
- fock 7y agoand if you look closely, 70 of those dependents are just small-scale/bs packages and the only sensible real dependency is cross-spawn _via_ the shebang package (which applies this regex to a string). The whole ecosysten could use a purge of all those useless 1-line-requires (which were all introduced by helpful commits from the "i has 1337 downloads"-community), currently this is madness.
- tuananh 7y agosindresorhus is famous for that stuff :D
- vhakulinen 7y agoThis just made my day.
- arkh 7y agoI love the useless tests : https://github.com/sindresorhus/shebang-regex/blob/1cb5d4aee830d22e8222d7aa35315e91629a68c9/test.js https://github.com/sindresorhus/shebang-regex/blob/1cb5d4aee... You could replace the regexp with something matching everything and they would still pass.