> For the complete documentation index, see [llms.txt](https://wiki.robmurtagh.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.robmurtagh.com/javascript/npm.md).

# npm

## Create command line utility for project

In your `package.json`, include (see also package.json docs [here](https://docs.npmjs.com/files/package.json)):

```javascript
{ "bin" : { "myapp" : "./cli.js" } }
```

Making sure the relevant script has the header:

```javascript
#!/usr/bin/env node
```

## Locally install the command line utility

```bash
npm link
```
