mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
10 lines
217 B
JavaScript
10 lines
217 B
JavaScript
import fs from 'fs';
|
|
import path from 'path';
|
|
|
|
export default function getPackageVersion() {
|
|
let packageJSON = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json')));
|
|
|
|
return packageJSON.version;
|
|
}
|
|
|