Project Init

This commit is contained in:
Muluhabt
2026-05-29 15:23:46 +03:00
commit 2fbc557aac
67387 changed files with 6063341 additions and 0 deletions

20
node_modules/es-toolkit/dist/predicate/isNode.mjs generated vendored Normal file
View File

@@ -0,0 +1,20 @@
//#region src/predicate/isNode.ts
/**
* 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');
* }
*/
function isNode() {
return typeof process !== "undefined" && process?.versions?.node != null;
}
//#endregion
export { isNode };