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