get-package-version.js 277 B

12345678910
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. function getPackageVersion(moduleName) {
  4. try {
  5. return require(moduleName + "/package.json").version;
  6. }
  7. catch (err) { }
  8. return;
  9. }
  10. exports.getPackageVersion = getPackageVersion;