port.js 105 Bytes
Newer Older
Julien Benchetrit's avatar
Julien Benchetrit committed
1 2
const argv = require('./argv');

dengxiaofeng's avatar
dengxiaofeng committed
3
module.exports = parseInt(argv.port || process.env.PORT || '3002', 10);