@gjsify/node-polyfills 0.4.43 → 0.4.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -0
- package/package.json +41 -41
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @gjsify/node-polyfills
|
|
2
|
+
|
|
3
|
+
Meta package: a dependency-only umbrella that pulls in every `@gjsify` Node.js polyfill — assert, async_hooks, buffer, child_process, crypto, dgram, dns, events, fs, http, http2, net, os, path, process, readline, stream, tls, tty, url, util, worker_threads, zlib, and more. It contains no runtime code of its own; adding it as a dependency gives you the complete Node.js API surface for GJS in one install.
|
|
4
|
+
|
|
5
|
+
Part of the [gjsify](https://github.com/gjsify/gjsify) project — Node.js and Web APIs for GJS (GNOME JavaScript).
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
gjsify install @gjsify/node-polyfills
|
|
11
|
+
|
|
12
|
+
# npm or yarn also work (e.g. adding it to an existing project):
|
|
13
|
+
npm install @gjsify/node-polyfills
|
|
14
|
+
yarn add @gjsify/node-polyfills
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
// No direct import needed — add @gjsify/node-polyfills as a dependency
|
|
21
|
+
// and the gjsify build system wires up all polyfills automatically via
|
|
22
|
+
// --globals auto.
|
|
23
|
+
//
|
|
24
|
+
// Individual APIs are available under their node: specifiers:
|
|
25
|
+
import { readFileSync } from 'node:fs';
|
|
26
|
+
import { createServer } from 'node:http';
|
|
27
|
+
import { EventEmitter } from 'node:events';
|
|
28
|
+
|
|
29
|
+
const content = readFileSync('/etc/hostname', 'utf8');
|
|
30
|
+
console.log(content.trim());
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
This package is used by `create-app` templates and CLI scaffolds. For production apps you typically only need the individual `@gjsify/*` polyfill packages you actually use.
|
|
34
|
+
|
|
35
|
+
## License
|
|
36
|
+
|
|
37
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/node-polyfills",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.44",
|
|
4
4
|
"description": "Meta package: all @gjsify Node.js polyfill packages as dependencies",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -11,46 +11,46 @@
|
|
|
11
11
|
"meta"
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@gjsify/assert": "^0.4.
|
|
15
|
-
"@gjsify/async_hooks": "^0.4.
|
|
16
|
-
"@gjsify/buffer": "^0.4.
|
|
17
|
-
"@gjsify/child_process": "^0.4.
|
|
18
|
-
"@gjsify/cluster": "^0.4.
|
|
19
|
-
"@gjsify/console": "^0.4.
|
|
20
|
-
"@gjsify/constants": "^0.4.
|
|
21
|
-
"@gjsify/crypto": "^0.4.
|
|
22
|
-
"@gjsify/dgram": "^0.4.
|
|
23
|
-
"@gjsify/diagnostics_channel": "^0.4.
|
|
24
|
-
"@gjsify/dns": "^0.4.
|
|
25
|
-
"@gjsify/domain": "^0.4.
|
|
26
|
-
"@gjsify/events": "^0.4.
|
|
27
|
-
"@gjsify/fs": "^0.4.
|
|
28
|
-
"@gjsify/http": "^0.4.
|
|
29
|
-
"@gjsify/http2": "^0.4.
|
|
30
|
-
"@gjsify/https": "^0.4.
|
|
31
|
-
"@gjsify/inspector": "^0.4.
|
|
32
|
-
"@gjsify/module": "^0.4.
|
|
33
|
-
"@gjsify/net": "^0.4.
|
|
34
|
-
"@gjsify/node-globals": "^0.4.
|
|
35
|
-
"@gjsify/os": "^0.4.
|
|
36
|
-
"@gjsify/path": "^0.4.
|
|
37
|
-
"@gjsify/perf_hooks": "^0.4.
|
|
38
|
-
"@gjsify/process": "^0.4.
|
|
39
|
-
"@gjsify/querystring": "^0.4.
|
|
40
|
-
"@gjsify/readline": "^0.4.
|
|
41
|
-
"@gjsify/sqlite": "^0.4.
|
|
42
|
-
"@gjsify/stream": "^0.4.
|
|
43
|
-
"@gjsify/string_decoder": "^0.4.
|
|
44
|
-
"@gjsify/sys": "^0.4.
|
|
45
|
-
"@gjsify/timers": "^0.4.
|
|
46
|
-
"@gjsify/tls": "^0.4.
|
|
47
|
-
"@gjsify/tty": "^0.4.
|
|
48
|
-
"@gjsify/url": "^0.4.
|
|
49
|
-
"@gjsify/util": "^0.4.
|
|
50
|
-
"@gjsify/v8": "^0.4.
|
|
51
|
-
"@gjsify/vm": "^0.4.
|
|
52
|
-
"@gjsify/worker_threads": "^0.4.
|
|
53
|
-
"@gjsify/zlib": "^0.4.
|
|
14
|
+
"@gjsify/assert": "^0.4.44",
|
|
15
|
+
"@gjsify/async_hooks": "^0.4.44",
|
|
16
|
+
"@gjsify/buffer": "^0.4.44",
|
|
17
|
+
"@gjsify/child_process": "^0.4.44",
|
|
18
|
+
"@gjsify/cluster": "^0.4.44",
|
|
19
|
+
"@gjsify/console": "^0.4.44",
|
|
20
|
+
"@gjsify/constants": "^0.4.44",
|
|
21
|
+
"@gjsify/crypto": "^0.4.44",
|
|
22
|
+
"@gjsify/dgram": "^0.4.44",
|
|
23
|
+
"@gjsify/diagnostics_channel": "^0.4.44",
|
|
24
|
+
"@gjsify/dns": "^0.4.44",
|
|
25
|
+
"@gjsify/domain": "^0.4.44",
|
|
26
|
+
"@gjsify/events": "^0.4.44",
|
|
27
|
+
"@gjsify/fs": "^0.4.44",
|
|
28
|
+
"@gjsify/http": "^0.4.44",
|
|
29
|
+
"@gjsify/http2": "^0.4.44",
|
|
30
|
+
"@gjsify/https": "^0.4.44",
|
|
31
|
+
"@gjsify/inspector": "^0.4.44",
|
|
32
|
+
"@gjsify/module": "^0.4.44",
|
|
33
|
+
"@gjsify/net": "^0.4.44",
|
|
34
|
+
"@gjsify/node-globals": "^0.4.44",
|
|
35
|
+
"@gjsify/os": "^0.4.44",
|
|
36
|
+
"@gjsify/path": "^0.4.44",
|
|
37
|
+
"@gjsify/perf_hooks": "^0.4.44",
|
|
38
|
+
"@gjsify/process": "^0.4.44",
|
|
39
|
+
"@gjsify/querystring": "^0.4.44",
|
|
40
|
+
"@gjsify/readline": "^0.4.44",
|
|
41
|
+
"@gjsify/sqlite": "^0.4.44",
|
|
42
|
+
"@gjsify/stream": "^0.4.44",
|
|
43
|
+
"@gjsify/string_decoder": "^0.4.44",
|
|
44
|
+
"@gjsify/sys": "^0.4.44",
|
|
45
|
+
"@gjsify/timers": "^0.4.44",
|
|
46
|
+
"@gjsify/tls": "^0.4.44",
|
|
47
|
+
"@gjsify/tty": "^0.4.44",
|
|
48
|
+
"@gjsify/url": "^0.4.44",
|
|
49
|
+
"@gjsify/util": "^0.4.44",
|
|
50
|
+
"@gjsify/v8": "^0.4.44",
|
|
51
|
+
"@gjsify/vm": "^0.4.44",
|
|
52
|
+
"@gjsify/worker_threads": "^0.4.44",
|
|
53
|
+
"@gjsify/zlib": "^0.4.44"
|
|
54
54
|
},
|
|
55
55
|
"gjsify": {
|
|
56
56
|
"runtimes": {
|