Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/svenliebig/nodejs-cli-template


https://github.com/svenliebig/nodejs-cli-template

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

# CLI-Template

Use: NodeJS 18

```bash
git clone [email protected]:svenliebig/nodejs-cli-template.git
cd nodejs-cli-template
chmod +x ./main.js
```

now you can just `./main.js` on a mac to execute the file.

add an alias to your `~/.bash_profile` like this:

```bash
alias runmyjs="//nodejs-cli-template/main.js"
```

Now you can reopen you terminal, and you can `runmyjs` from anywhere you want!