UNPKG

node-loc

Version:

ts-lib [![npm](https://img.shields.io/npm/v/npm.svg)](https://www.npmjs.com/package/ts-lib)

15 lines 525 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Fs = require("fs"); const Path = require("path"); const PackagePath = Path.join(__dirname, './../..', 'package.json'); function getVersion() { const packageInfo = JSON.parse(Fs.readFileSync(PackagePath, 'utf8')); return packageInfo && packageInfo.version || 'invalid version!'; } exports.getVersion = getVersion; exports.ExtensionJustify = { '.ts': 'TypeScript', '.tsx': 'TypeScript React' }; //# sourceMappingURL=utils.js.map