node-loc
Version:
ts-lib [](https://www.npmjs.com/package/ts-lib)
15 lines • 525 B
JavaScript
;
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