Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ldd/better-package-json
VS Code Extension for a better experience using package.json files
https://github.com/ldd/better-package-json
npm npm-package vscode-extension
Last synced: 12 days ago
JSON representation
VS Code Extension for a better experience using package.json files
- Host: GitHub
- URL: https://github.com/ldd/better-package-json
- Owner: ldd
- Created: 2019-04-06T06:28:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T04:27:37.000Z (almost 2 years ago)
- Last Synced: 2023-03-28T00:13:46.997Z (over 1 year ago)
- Topics: npm, npm-package, vscode-extension
- Language: TypeScript
- Size: 1.69 MB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# better-package-json
Tool for managing project dependencies.
Inspired by [npm-gui](https://www.npmjs.com/package/npm-gui).![analyze packages preview](./images/command-analyze-packages.png)
## Features
- annotate `package.json` files
- update all dependencies found in `package.json`, or just those patched with updates## Configuration
This extension can be configured in User Settings or Workspace settings.
`"better-packages.safeMode": true`
This setting will control whether `#` is preprended to commands. This turns them into comments that you can modify at your leisure.> e.g: `#yard add [email protected]`
`"better-packages.semVerRange": original || exact || tilde || caret`
Specifies what semantic version range to use when updating packages.Given these dependencies on `package.json` :
```
dependencies: {
"A": "^1.0.0", // latest is 1.0.3
"B": "~1.0.0" // latest is 1.0.4
}
````original`: Adapts to the range originally used in `package.json`.
> `yarn add A@^1.0.3 B@~1.0.4`
`exact`: Uses an exact version.
> `yarn add [email protected] [email protected]`
`tilde`: Always uses `~`.
> `yarn add A@~1.0.3 B@~1.0.4`
`caret`: Always uses `^`.
> `yarn add A@^1.0.3 B@^1.0.4`
## Release Notes
#### 0.2.1
- fix some security issues
#### 0.2.0
- use `package-lock.json` instead of `npm-package-lock.json`
#### 0.1.0
add `safeMode` and `semVerRange` configuration options
#### 0.0.1
Initial public release