1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 01:14:36 +00:00

fix(node): add util to check if running in node

This commit is contained in:
Krishna Acondy
2021-07-23 22:23:05 +01:00
parent c2ff28c323
commit 2a9526d056

4
src/utils/isNode.ts Normal file
View File

@@ -0,0 +1,4 @@
export const isNode = () =>
typeof process !== 'undefined' &&
process.versions != null &&
process.versions.node != null