UNPKG

apim-policy-utils

Version:

An XML file scripts maniputaling and debugging tool targeting to help working with Azure APIM Policy files in xml format.

9 lines (8 loc) 301 B
import * as fs from "fs" import * as Path from "path" export const getVersion = () => { const packageJSONPath = Path.resolve(__dirname, "../package.json") const content = fs.readFileSync(packageJSONPath, { encoding: "utf8" }) const config = JSON.parse(content) return config.version }