updates/README.md
2023-06-18 02:08:11 +02:00

49 lines
1.6 KiB
Markdown

# updates
[![](https://img.shields.io/npm/v/updates.svg?style=flat)](https://www.npmjs.org/package/updates) [![](https://img.shields.io/npm/dm/updates.svg)](https://www.npmjs.org/package/updates) [![](https://packagephobia.com/badge?p=updates)](https://packagephobia.com/result?p=updates)
![](./screenshot.png)
`updates` is a CLI tool which checks for npm and poetry dependency updates of the current project and optionally updates `package.json`/`pyproject.toml`. It is highly configurable and is typically able to complete in less than a second.
# Usage
```bash
# check for updates
npx updates
# update package.json and install new dependencies
npx updates -u && npm i
```
## Bun and Deno
```bash
bunx updates
deno run -A npm:updates
```
## Options
See `--help`. Options that take multiple arguments can take them either via comma-separated value or by specifying the option multiple times. If an option has a optional `pkg` argument but none is given, the option will be applied to all packages instead.
## Config File
Put a `updates.config.js` or `updates.config.mjs` in the root of your project, usually besides `package.json` to configure certain options of the module. CLI arguments have precedence over options in the config file.
```js
export default {
exclude: [
"semver",
],
};
```
### Config Options
- `include` *Array<String>*: Array of dependencies to include
- `exclude` *Array<String>*: Array of dependencies to exclude
- `types` *Array<String>*: Array of dependency types
- `registry` *String*: URL to npm registry
© [silverwind](https://github.com/silverwind), distributed under BSD licence