yetzt/node-geocluster

#!/usr/bin/env node error

Closed this issue · 3 comments

The first line in the code reads "#!/usr/bin/env node" and it appears to be causing the code to crash in javascript es6.

yetzt commented

the first line is a shebang and tells the shell what interpreter to use. works fine with node up to v14. can't reproduce any crashes. please be more specific.

It produces an error if used in browser:
Screenshot 2020-10-23 at 11 48 30

yetzt commented

it was never designed to be used in a browser. the file has a shebang. its meant to be used in a posix environment. a browser is not a posix environment.

the code is public domain, it's trivial to copy it into whatever code you want to use in your browser and run it, without wrapping it in three layers of webpack to shoehorn the module.exports into the dom.

won't fix.