Add everything and anything

This commit is contained in:
2026-03-13 15:46:10 +08:00
parent 50daf52de6
commit e72a3ab85c
67568 changed files with 2885399 additions and 138 deletions

View File

@@ -0,0 +1,2 @@
module.exports.isNode = false;

View File

@@ -0,0 +1,4 @@
/**
* returns true if the current environment is NodeJS
*/
export declare const isNode: boolean;

View File

@@ -0,0 +1,2 @@
// Only Node.JS has a process variable that is of [[Class]] process
module.exports.isNode = Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]';