Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chrisguest75/npx_palette

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chrisguest75/npx_palette

Copy the code to a gist.

  • 1.0.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

  • npx docs
  • awesome-npx
  • lolcatjs

FAQs

Package last updated on 24 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc