UNPKG

actionhero

Version:

actionhero.js is a multi-transport API Server with integrated cluster capabilities and delayed tasks

15 lines (11 loc) 324 B
'use strict' const path = require('path') const packageJSON = require(path.join(__dirname, '/../../package.json')) module.exports = { name: 'version', description: 'return the ActionHero version within this project', run: function (api, data, next) { console.log(packageJSON.version) next(null, true) } }