# @hyrious/version

> Add --version to your cli.

Latest version **0.1.0** (published 2021-08-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @hyrious/version
pnpm add @hyrious/version
yarn add @hyrious/version
bun add @hyrious/version
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2021-08-02 |
| First published | 2021-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | hyrious |
| Maintainers | hyrious |
| Keywords | cli |

## Links

- npm: https://www.npmjs.com/package/@hyrious/version
- Repository: https://github.com/hyrious/version
- Homepage: https://github.com/hyrious/version#readme
- Issues: https://github.com/hyrious/version/issues
- npm.io page: https://npm.io/package/@hyrious/version

## Dependencies (1)

- [caller-path](https://npm.io/package/caller-path.md) ^3.0.1

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2021-08-02

## README

## @hyrious/version

### Usage

```js
import { version } from "@hyrious/version";
version();
// if process.argv.includes('--version'), print version and exit
```

```bash
node ./bin.js --version
0.1.0
```

**Configuration**

```js
import { version } from "@hyrious/version";
// manually set version number instead of infering from package.json.
version("0.1.0");
// get version number from another place, you can use async function here.
version(() => JSON.parse(fs.readFileSync(__dirname + "/package.json", "utf8")).version);
```

### License

MIT @ [hyrious](https://github.com/hyrious)

---
_Source: https://npm.io/package/@hyrious/version · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
