Skip to content

Instantly share code, notes, and snippets.

@zkat
Last active Aug 25, 2022
Embed
What would you like to do?
npx is cool

Hi!

try passing the URL for this gist to npx.

#!/usr/bin/env node
console.log('yay gist')
{"name": "npx-is-cool", "version": "0.0.0", "bin": "./index.js"}
@ilio
Copy link

ilio commented Jul 22, 2018

npx https://gist.github.com/zkat/4bc19503fe9e9309e2bfaa2c58074d32
Cool 👍

@ilio
Copy link

ilio commented Jul 22, 2018

My first npx https://gist.github.com/ilio/2aaab43daa4cec681ae8520eb052a873 (run react-codemod script React-PropTypes-to-prop-types) can you help me to improve/simplify it?

@matheusnascgomes
Copy link

matheusnascgomes commented Jun 10, 2019

It tends to be pretty useful, i like it!

@Vikiboss
Copy link

Vikiboss commented Dec 6, 2020

awesome

@vunderkind
Copy link

vunderkind commented Mar 16, 2021

npx is cool!

@byren51
Copy link

byren51 commented May 12, 2021

Is npx cool? Why is it cool?

@geekreflex
Copy link

geekreflex commented Jun 13, 2021

I was here.

@gerasimvol
Copy link

gerasimvol commented Nov 8, 2021

lol

@ADGAP-LXY
Copy link

ADGAP-LXY commented Nov 15, 2021

i like it!

@viocha
Copy link

viocha commented Dec 4, 2021

npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://gist.github.com/4bc19503fe9e9309e2bfaa2c58074d32.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

@ed3899
Copy link

ed3899 commented Feb 25, 2022

Eduardo was here!

@TechStudent10
Copy link

TechStudent10 commented Feb 25, 2022

const npx = "🔥🔥🔥"

@xgqfrms
Copy link

xgqfrms commented May 8, 2022

npx & gist & npm package

# execute gist code `bin`

$ npx https://gist.github.com/xgqfrms/1981c08fcb7e09056e1c5d9192f272c8

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment