Last Updated: November 02, 2017
·
12.12K
· iondrimba

Get package.json version number

Very simple way of getting the version of the package.json file.

In your gulpfile.js you can do something like this:

var pckg = require('./package.json');
console.log(pckg.version);