# release-info

> Extract the latest version information of the current project into your file, no longer worry about forgetting which version was released.

Latest version **1.0.0** (published 2022-10-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install release-info
pnpm add release-info
yarn add release-info
bun add release-info
```

Provides the command `release-info`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-10-18 |
| First published | 2022-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | wll8 |
| Maintainers | wll8 |
| Keywords | release, deploy |

## Links

- npm: https://www.npmjs.com/package/release-info
- Repository: https://github.com/wll8/release-info
- Issues: https://github.com/wll8/release-info/issues
- npm.io page: https://npm.io/package/release-info

## Recent versions

- 1.0.0 (latest) — 2022-10-18

## README

# release-info

Extract the latest version information of the current project into your file, no longer worry about forgetting which version was released.

将当前项目的最新版本信息提取到您的文件中，再也不用担心忘记发布了哪个版本。

### use in encoding

```js
const {
  inSetGitInfo,
} = require(`release-info`)

// ...
```

### Use from the command line

```sh
# Install
npm i -g release-info

# Insert current version information into h5.html
release-info filePath=h5.html

# Create a file with version information
release-info filePath=release.txt reset
```

Command line arguments:

```txt
template -- for combining information
  Default is {branch}/{hashShort} -- {nowDate}
  Available variables are:
    hash
    hashShort
    hashDate
    nowDate
    branch
    gitName
    gitEmail
    osName
    projectName
    projectVersion
filePath -- Write information to file as comments
ext -- Specify the file suffix (without dots), which is automatically judged by the file name by default
reset -- Whether to overwrite the file content, equivalent to creating a file, the default is false
```

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