shivanshu3 / strip-js

[DEPRECATED] NPM Module which strips out all JavaScript code from some HTML text
MIT License
7 stars 7 forks source link

Global install in Windows is broken #6

Open spyrosmas opened 6 years ago

spyrosmas commented 6 years ago

How to install in Windows so the strip-js < input.html command can work to be called from bat/cmd batch file?

shivanshu3 commented 6 years ago

npm install -g strip-js should ideally be a solution for that. It works in Linux, but doesn't work on Windows because of this line in cli.js:

var html = fs.readFileSync('/dev/stdin').toString();

I'll try to fix this in a few days when I get some time. If you have a solution, feel free to send a pull request :)