easy to read/write a VERSION file
npm install easy-version-file --save
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'
The following filenames will be supported
- VERSION
- VERSION.txt
- VERSION.md
- .VERSION
- VERSION.DEV
- VERSION.PROD
- VERSION.LOCAL
- VERSION.STAGE
- VERSION.TEST
Install VERSION plugin to support VERSION
file syntax highlight。