From dd43b73e40721e50987d1a7ce6511c40f21326df Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Mon, 8 Apr 2019 20:14:13 +0200 Subject: [PATCH] require node 11 or higher --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 19155c7..f4b767a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,4 +9,7 @@ const exp = { module.exports = { ...exp, default: exp, -} \ No newline at end of file +} + +// Require node 11 +if(parseInt(process.versions.node.split('.')[0]) < 11) throw new Error('Node 11 or higher is required') \ No newline at end of file