UNPKG

trs-tag

Version:

a tool for easy update package.version and create git tag / push git tag

8 lines (7 loc) 243 B
var fs = require('fs'); var cbDataPackage = getPackageJson(); function getPackageJson() { var _packageJson = fs.readFileSync('./package.json'); return _packageJson ? JSON.parse(_packageJson) : null; } module.exports = cbDataPackage