const packageJson = require(`${process.cwd()}/package.json`); module.exports = function(options) { return function(req, res, next) { res.set('Salix-Version', packageJson.version); next(); }; };