This is a small example of node shell script that takes input from stdin and slugifies it
npm install
echo "b a n a n a" | ./slugify.js
or
npm test
if you are running node 13.3
or later
echo "banana slug" | ./slugify.mjs
This is a small example of node shell script that takes input from stdin and slugifies it
npm install
echo "b a n a n a" | ./slugify.js
or
npm test
if you are running node 13.3
or later
echo "banana slug" | ./slugify.mjs