Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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/"))'
```