forked from Flolagale/mailin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
16 lines (14 loc) · 635 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict';
var semver = require('semver');
var pkg = require('./package.json');
/* Check compatibility with versions of node and iojs. */
if (!semver.satisfies(process.version, '>=8.0.0')) {
console.log('\n*****\nYour current node version (' + process.version +
') is not compatible with Mailin v' + pkg.version +
' which requires ' + pkg.engine +
'.\nIf you are running an older version of node, please consider installing ' +
'Mailin ^2.0.0 (npm install mailin@2.0.0).\n' +
'Love,\nthe Mailin maintainers. \n*****\n');
}
var mailin = require('./lib/mailin');
module.exports = mailin;