GeistHaus
log in · sign up

Creating ESM-based shell scripts for Unix and Windows with Node.js

2ality.com

In this blog post, we learn how to implement shell scripts via Node.js ESM modules. There are two common ways of doing so: We can write a stand-alone script and install it ourselves. We can put our script in an npm package and use a package manager to install it. That also gives us the option to publish the package to the npm registry so that others can install it, too.

1 page links to this URL