You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/functions/typescript/node.md
+28-7Lines changed: 28 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,13 @@ The TypeScript runtime used in Juno does not provide full Node.js support. Polyf
4
4
5
5
If you require a specific Node.js feature or are blocked by a missing polyfill, please reach out or open an issue. Features are prioritized based on usage and compatibility.
6
6
7
-
---
8
-
9
-
## Globals
7
+
The following globals are available out of the box, without any imports.
10
8
11
-
Some global functions are supported but come with important limitations or added details.
9
+
---
12
10
13
-
###Math.random
11
+
## Math.random
14
12
15
-
Generates a pseudo-random number between 0 (inclusive) and 1 (exclusive) is supported.
13
+
Generates a pseudo-random number between 0 (inclusive) and 1 (exclusive).
16
14
17
15
However, the generator is seeded once after upgrade of the Satellite. Use it with caution.
18
16
@@ -28,11 +26,34 @@ const value = Math.random();
28
26
29
27
---
30
28
31
-
###Console
29
+
## Console
32
30
33
31
Logging is fully supported. Objects are stringified and logs are routed to the IC-CDK `print()` function, making them visible in your Satellite logs including inside the Juno Console UI in development or production.
0 commit comments