1.1.0 • Published 2 years ago
get-own-version v1.1.0
NPM: get-own-version
This is a small typescript library (published to npm) to get the current version from own package.json file.
Code Example
TypeScript:
import {getVersion} from "get-own-version";
// get version in major.minor.patch format
const myVersion = await getVersion();
Javascript:
const getVersion = require("get-own-version");
const myVersion = await getVersion();