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: 11 months 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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T04:27:37.000Z (over 3 years ago)
- Last Synced: 2025-02-28T02:09:43.938Z (over 1 year ago)
- Topics: npm, npm-package, vscode-extension
- Language: TypeScript
- Size: 1.69 MB
- Stars: 6
- 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).

## 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 react@16.0.0`
`"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 A@1.0.3 B@1.0.4`
`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