nork/src/version.ts

11 lines
240 B
TypeScript
Raw Permalink Normal View History

2021-12-01 18:05:44 +01:00
import fs from 'fs-extra'
import path from 'path'
export default class Version {
static show(): string {
const pkgJson = fs.readJsonSync(path.join(__dirname, '../package.json'))
const log = `nork ${pkgJson.version}`
return log
}
}