package-field-cli
Version:
CLI that prints the value of a specified field from package.json.
90 lines (48 loc) • 3.17 kB
Markdown
# package-field-cli
<a href="https://raw.githubusercontent.com/jaid/package-field-cli/master/license.txt"><img src="https://img.shields.io/github/license/jaid/package-field-cli?style=flat-square" alt="License"/></a> <a href="https://github.com/sponsors/jaid"><img src="https://img.shields.io/badge/<3-Sponsor-FF45F1?style=flat-square" alt="Sponsor package-field-cli"/></a>
<a href="https://actions-badge.atrox.dev/jaid/package-field-cli/goto"><img src="https://img.shields.io/endpoint.svg?style=flat-square&url=https%3A%2F%2Factions-badge.atrox.dev%2Fjaid%2Fpackage-field-cli%2Fbadge" alt="Build status"/></a> <a href="https://github.com/jaid/package-field-cli/commits"><img src="https://img.shields.io/github/commits-since/jaid/package-field-cli/v2.0.0?style=flat-square&logo=github" alt="Commits since v2.0.0"/></a> <a href="https://github.com/jaid/package-field-cli/commits"><img src="https://img.shields.io/github/last-commit/jaid/package-field-cli?style=flat-square&logo=github" alt="Last commit"/></a> <a href="https://github.com/jaid/package-field-cli/issues"><img src="https://img.shields.io/github/issues/jaid/package-field-cli?style=flat-square&logo=github" alt="Issues"/></a>
<a href="https://npmjs.com/package/package-field-cli"><img src="https://img.shields.io/npm/v/package-field-cli?style=flat-square&logo=npm&label=latest%20version" alt="Latest version on npm"/></a> <a href="https://github.com/jaid/package-field-cli/network/dependents"><img src="https://img.shields.io/librariesio/dependents/npm/package-field-cli?style=flat-square&logo=npm" alt="Dependents"/></a> <a href="https://npmjs.com/package/package-field-cli"><img src="https://img.shields.io/npm/dm/package-field-cli?style=flat-square&logo=npm" alt="Downloads"/></a>
**CLI that prints the value of a specified field from package.json.**
## Installation
<a href="https://npmjs.com/package/package-field-cli"><img src="https://img.shields.io/badge/npm-package--field--cli-C23039?style=flat-square&logo=npm" alt="package-field-cli on npm"/></a>
```bash
npm install --global package-field-cli@^2.0.0
```
<a href="https://yarnpkg.com/package/package-field-cli"><img src="https://img.shields.io/badge/Yarn-package--field--cli-2F8CB7?style=flat-square&logo=yarn&logoColor=white" alt="package-field-cli on Yarn"/></a>
```bash
yarn global add package-field-cli@^2.0.0
```
## CLI Usage
After installing package `package-field-cli` globally, you can use its command line interface.
```bash
package-field-cli
```
For usage instructions:
```bash
package-field-cli --help
```
## Development
<details>
<summary><b>Development hints for maintaining and improving package-field-cli</b></summary>
Setting up:
```bash
git clone git@github.com:jaid/package-field-cli.git
cd package-field-cli
npm install
```
Testing:
```bash
npm run test:dev
```
Testing in production environment:
```bash
npm run test
```
</details>
## License
[MIT License](https://raw.githubusercontent.com/jaid/package-field-cli/master/license.txt)
Copyright © 2020, Jaid \<jaid.jsx@gmail.com> (https://github.com/jaid)
<!---
Readme generated with tldw v7.3.1
https://github.com/Jaid/tldw
-->