Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mskelton/pkg
Fish plugin for parsing package.json files
https://github.com/mskelton/pkg
fish fish-plugin fish-shell fisher
Last synced: about 1 month ago
JSON representation
Fish plugin for parsing package.json files
- Host: GitHub
- URL: https://github.com/mskelton/pkg
- Owner: mskelton
- License: isc
- Created: 2021-03-02T20:06:53.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-30T21:26:49.000Z (over 3 years ago)
- Last Synced: 2024-10-18T08:18:02.195Z (4 months ago)
- Topics: fish, fish-plugin, fish-shell, fisher
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pkg
Fish plugin for parsing package.json files.
## Installation
```sh
fisher install mskelton/pkg
```## Usage
Display entire package.json file.
```sh
pkg
```Display a specific section of package.json.
```sh
pkg dependencies
```## Advanced
`pkg` uses [jq](https://stedolan.github.io/jq/) under the hood, so any valid jq expression (omitting the first period) can be used. For example, the following prints all `@babel` dev dependencies.
```sh
pkg 'devDependencies|keys[]|select(startswith("@babel/"))'
```