Skip to content

Commit

Permalink
feat: does a thing
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Jun 7, 2021
1 parent 406822f commit 73d4374
Show file tree
Hide file tree
Showing 5 changed files with 301 additions and 29 deletions.
35 changes: 25 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,38 @@
# boneskull-template
# nvmermind

> JUST THE WAY I LIKE IT
> Uninstall old versions of Node.js as installed by [nvm](https://github.com/nvm-sh/nvm)
Bacon ipsum dolor amet fatback swine hamburger ham short loin, brisket leberkas alcatra tenderloin filet mignon kevin frankfurter t-bone cupim turducken.
If you have a stinking bonepile of old Node.js versions in your `~/.nvm` folder, this script helps remove them nicely.

## Install

```shell
$ npm install PACKAGENAME
```
You _could_ install this, but maybe better to...

## Usage

Alcatra pancetta meatball, leberkas ball tip cupim drumstick tongue strip steak.
Run:

```bash
npx nvmermind
```

`nvmermind` will keep the **latest installed version of _each_ major** it finds, and prompt to remove all the others. So, if you have `14.16.1` and `14.17.0` installed, it will keep `14.17.0`.

As of

### API

There's an "API." You can `require('nvmermind')`, but I don't feel like documenting it. Maybe next week? There are some docstrings, which is better than nothing.

### Usage Notes

- Removal uses `nvm uninstall`, which does its thing safely (_read_: slowly).
- `nvmermind` accepts no options, arguments, flags, cards, cash or checks.

## Notes
## Acknowledgments

Bacon ribeye ham hock kielbasa landjaeger drumstick pork chop andouille.
- I stole some code from Wes Todd's [nvmjs](https://github.com/wesleytodd/nvmjs). I should probably send a PR.

## License

Copyright © 2019 Christopher Hiller. Licensed Apache-2.0
Copyright © 2021 Christopher Hiller. Licensed Apache-2.0
89 changes: 76 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 21 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "packagename",
"version": "0.0.0",
"private": true,
"description": "Shankle short loin porchetta strip steak tongue drumstick shoulder shank turkey pork loin picanha flank.",
"name": "nvmermind",
"version": "0.1.0",
"description": "Uninstall old versions of Node.js as installed by nvm",
"main": "src/index.js",
"scripts": {
"posttest": "markdownlint-cli2 \"*.md\" && eslint .",
Expand All @@ -13,14 +12,25 @@
},
"repository": {
"type": "git",
"url": "https://github.com/boneskull/packagename"
"url": "https://github.com/boneskull/nvmermind"
},
"keywords": [],
"keywords": [
"nvm",
"node",
"nodejs",
"node.js",
"uninstall",
"clean",
"cleanup"
],
"author": "Christopher Hiller <boneskull@boneskull.com> (https://boneskull.com/)",
"license": "Apache-2.0",
"engines": {
"node": ">=12"
},
"bin": {
"nvmermind": "./src/index.js"
},
"devDependencies": {
"@babel/eslint-parser": "^7.14.4",
"eslint": "^7.13.0",
Expand Down Expand Up @@ -57,5 +67,10 @@
"singleQuote": true,
"bracketSpacing": false,
"endOfLine": "auto"
},
"dependencies": {
"@humanwhocodes/env": "^2.2.0",
"prompts": "^2.4.1",
"semver": "^6.3.0"
}
}
Loading

0 comments on commit 73d4374

Please sign in to comment.