4 ms·
Can I run JS from the command-line yet? e.g., jsrun code.js
by brianobush 16y ago
Can I run JS from the command-line yet? e.g., jsrun code.js
- InclinedPlane 16y agoYou have been able to for a long time. On windows there's windows scripting host which includes JS support. On *nix there's no standard way of doing it but there are plenty of options for rolling your own though node.js is becoming a de facto standard.
- carussell 16y ago16:30:33 spade@ruta-corsica:~$ passgen jygugiy5 16:30:35 spade@ruta-corsica:~$ file `which passgen` /home/spade/bin/passgen: a /home/spade/bin/js -ws script text executable 16:30:40 spade@ruta-corsica:~$ head -n 3 `which passgen` #!/home/spade/bin/js -ws /* passgen - configurable password generator * Copyright 2005 Colby Russell