/km_node_script_example

example of nodejs shell script

Primary LanguageJavaScriptMIT LicenseMIT

Keyboard Maestro node shell script

What is this

This is a small example of node shell script that takes input from stdin and slugifies it

npm install

to run in the terminal

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

to run from KM

Alt text