web-themer
Version:
Customizable theme generator for web applications.
21 lines (17 loc) • 559 B
JavaScript
;
const fs = require('fs');
const path = require('path');
const process = require('process');
function run(argv) {
let packageJsonPath = path.resolve(__dirname, '../../../package.json');
if (!fs.existsSync(packageJsonPath)) {
console.error(`Something went wrong; couldn't get the version.`);
console.error(`If the problem persists, try reinstalling swagen.`);
return;
}
let packageJson = require(packageJsonPath);
console.log(packageJson.version);
}
module.exports = {
run
};