Skip to content

Instantly share code, notes, and snippets.

View pevey's full-sized avatar

Lacey Pevey pevey

View GitHub Profile
@pevey
pevey / How to create Node cli executable from npm.md
Created August 8, 2023 15:42 — forked from mritzco/How to create Node cli executable from npm.md
Create Node Package (cli) executable from npm scripts

Creating an executable NPM package and using it

This short guide explains how to create an NPM package that can be called as a script from another project. For clarity: The package to execute will be called: Module The place where you use it: Application

1. Build your module

Create a standard module ignore command line parsing