1.0.5 • Published 3 years ago

@chrisguest75/npx_palette v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

README

Demonstrates creating a basic npx cmdline tool.

TODO:

  • node version used? How do we control it?
  • Where does npx download to?
  • Copy the code to a gist (example).

Learnings

  • The npx has to have a shebang at the top of the file.

Create

Simple steps to recreate and push to github and npm

git init 
npm init --scope=@chrisguest75

Run local

# without parameters
npm run start
# with parameters
npm run start -- --info                 

Publish

After writing some code you can publish it.

# make sure you update the package version in package.json before updating
npm publish --access public

Run

Run the published package

npx @chrisguest75/npx_palette  

Run npx from gist

# run from a gist
npx https://gist.github.com/zkat/4bc19503fe9e9309e2bfaa2c58074d32
# run from a gist
npx https://gist.github.com/Tynael/0861d31ea17796c9a5b4a0162eb3c1e8

Resources

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago