Skip to content

Instantly share code, notes, and snippets.

@BBlackwo
Forked from zkat/index.js
Last active July 25, 2018 05:10
Show Gist options
  • Save BBlackwo/c19da1972b8f3ac0a3f18b9a3612d22c to your computer and use it in GitHub Desktop.
Save BBlackwo/c19da1972b8f3ac0a3f18b9a3612d22c to your computer and use it in GitHub Desktop.
npx is cool

Hi!

try passing the URL for this gist to npx.

#!/usr/bin/env node
console.log('yay gist');
const { version, name } = require('./package.json');
console.log(version, name);
console.log(process.cwd());
console.log(__dirname);
{"name": "npx-is-cool", "version": "0.0.0", "bin": "./index.js"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment