0.1.0 • Published 3 years ago
@hyrious/version v0.1.0
@hyrious/version
Usage
import { version } from "@hyrious/version";
version();
// if process.argv.includes('--version'), print version and exit
node ./bin.js --version
0.1.0
Configuration
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
0.1.0
3 years ago