Skip to content

Instantly share code, notes, and snippets.

@zjkuang
Created November 17, 2022 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zjkuang/cdcb2f211eb57c0775a3671af0becdd8 to your computer and use it in GitHub Desktop.
Save zjkuang/cdcb2f211eb57c0775a3671af0becdd8 to your computer and use it in GitHub Desktop.
locate-yourself

In Termial, run

npx <url-of-this-gist>

Each time you make any change, remember to update the version in package.json

#!/usr/bin/env node
function test() {
console.log('Hello, world!');
}
test();
{
"name": "locate-yourself",
"version": "1.0",
"bin": "./index.js"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment