Javascript: get package.json data in gulpfile.js
This is not gulp specific. var p = require(‘./package.json’) p.homepage UPDATE: Be aware that “require” will cache the read results – meaning you cannot require, write to the file, then require again and expect the results to be updated.