easy-version-file
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

easy-version-file

easy to read/write a VERSION file

Install

npm install easy-version-file --save

Usage

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 plugin to support VERSION file syntax highlight。

License

MIT

Package Sidebar

Install

npm i easy-version-file

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.08 kB

Total Files

5

Last publish

Collaborators

  • yaoyuanzhang