Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yyz945947732/easy-version-file
easy to read/write a VERSION file
https://github.com/yyz945947732/easy-version-file
auto-release release version version-file
Last synced: about 1 month ago
JSON representation
easy to read/write a VERSION file
- Host: GitHub
- URL: https://github.com/yyz945947732/easy-version-file
- Owner: yyz945947732
- License: mit
- Created: 2023-09-11T02:44:25.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-11T05:47:47.000Z (over 1 year ago)
- Last Synced: 2024-11-21T10:36:34.425Z (about 1 month ago)
- Topics: auto-release, release, version, version-file
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/easy-version-file
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# easy-version-file
> easy to read/write a VERSION file
## Install
```sh
npm install easy-version-file --save
```## Usage
```js
import { readVersionFile, writeVersionFile } from "easy-version-file";console.log(await readVersionFile());
//=> '1.0.0'await writeVersionFile("1.0.1");
console.log(await readVersionFile());
//=> '1.0.1'
```## Support
The following filenames will be supported
- VERSION
- VERSION.txt
- VERSION.md
- .VERSION
- VERSION.DEV
- VERSION.PROD
- VERSION.LOCAL
- VERSION.STAGE
- VERSION.TEST## VSCode
Install [VERSION](https://marketplace.visualstudio.com/items?itemName=yaoyuanzhang.version-highlight) plugin to support `VERSION` file syntax highlight。
## License
[MIT](https://github.com/yyz945947732/easy-version-file/blob/master/LICENSE)