perst
Version:
perst is a wrapper around LoaderIO, which can be configured and run in your commandline multiple tests and validates the measureable values like AVG Response Time and AVG Error Rate.
13 lines (9 loc) • 347 B
JavaScript
import chalk from 'chalk';
import fs from 'fs';
import logger from '../logger.js';
import __dirname from '../dirname.cjs';
async function version() {
const packageJson = fs.readFileSync(__dirname + '/../package.json', 'utf-8');
logger.log(`perst ${chalk.green(`v${JSON.parse(packageJson).version}`)}`);
}
export { version as default };