Get the current version of your project as js lib or via cli call.
Forked from https://github.com/simonepri/project-version
$ npm install --save project-version
const version = ;// Caution: console.log outputs newlines, use process.stdout.write to avoid whitespacesconsole;//=> '1.0.0'
inside npm scripts
outside npm scripts
// with email@example.com project-version// before firstname.lastname@example.org ./node_modules/project-version/cli.js
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details.