MultiLoader-Template/node_modules/es-toolkit/dist/predicate/isNode.d.mts
3944Realms 768f38fc97 feat: 可使用的构建模板
修改了脚本,使其可以推给Maven仓库
2026-05-03 13:02:19 +08:00

18 lines
457 B
TypeScript

/**
* Checks if the current environment is Node.js.
*
* This function checks for the existence of the `process.versions.node` property,
* which only exists in Node.js environments.
*
* @returns {boolean} `true` if the current environment is Node.js, otherwise `false`.
*
* @example
* if (isNode()) {
* console.log('This is running in Node.js');
* const fs = import('node:fs');
* }
*/
declare function isNode(): boolean;
export { isNode };