require node 11 or higher

This commit is contained in:
cupcakearmy 2019-04-08 20:14:13 +02:00
parent 09a4ec5133
commit dd43b73e40

View File

@ -9,4 +9,7 @@ const exp = {
module.exports = {
...exp,
default: exp,
}
}
// Require node 11
if(parseInt(process.versions.node.split('.')[0]) < 11) throw new Error('Node 11 or higher is required')