node/doc/api
Darshan Sen 9bbde3d7ba
src: add initial support for single executable applications
Compile a JavaScript file into a single executable application:

```console
$ echo 'console.log(`Hello, ${process.argv[2]}!`);' > hello.js

$ cp $(command -v node) hello

$ npx postject hello NODE_JS_CODE hello.js \
    --sentinel-fuse NODE_JS_FUSE_fce680ab2cc467b6e072b8b5df1996b2

$ npx postject hello NODE_JS_CODE hello.js \
    --sentinel-fuse NODE_JS_FUSE_fce680ab2cc467b6e072b8b5df1996b2 \
    --macho-segment-name NODE_JS

$ ./hello world
Hello, world!
```

Signed-off-by: Darshan Sen <raisinten@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/45038
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2023-02-18 02:49:18 +00:00
..
addons.md doc: use "file system" instead of "filesystem" 2023-01-14 01:10:38 +00:00
assert.md tools: add prefer-proto rule 2023-01-10 05:38:36 +00:00
async_context.md async_hooks: deprecate the AsyncResource.bind asyncResource property 2023-02-03 02:02:19 +00:00
async_hooks.md doc: add async_hooks migration note 2022-11-21 00:29:51 +00:00
buffer.md 2023-02-02, Version 18.14.0 'Hydrogen' (LTS) 2023-02-02 14:08:50 -05:00
child_process.md doc: abort controller emits error in child process 2023-01-07 08:01:47 +00:00
cli.md doc: fix -C flag usage 2023-02-02 19:17:15 +00:00
cluster.md doc: use os.availableParallelism() in async_context and cluster 2022-12-28 11:45:10 +00:00
console.md doc: use serial comma in console docs 2022-05-31 14:57:50 +01:00
corepack.md doc: mention corepack prepare supports tag or range 2022-10-10 02:47:39 +02:00
crypto.md doc: remove last example use of require('crypto').webcrypto 2022-12-13 19:12:02 +01:00
debugger.md doc: add missing line in debugger 2022-11-30 02:36:20 +00:00
deprecations.md async_hooks: deprecate the AsyncResource.bind asyncResource property 2023-02-03 02:02:19 +00:00
dgram.md 2022-12-13, Version 16.19.0 'Gallium' (LTS) 2022-12-13 08:01:09 -05:00
diagnostics_channel.md 2023-01-05, Version 18.13.0 'Hydrogen' (LTS) 2023-01-05 19:57:23 -05:00
dns.md doc: update to match changed --dns-result-order default 2023-01-17 00:56:07 +01:00
documentation.md doc: add experimental stages 2023-01-14 14:25:08 +00:00
domain.md doc: add node: prefix for all core modules 2022-04-20 10:23:41 +02:00
embedding.md src: add detailed embedder process initialization API 2022-08-05 19:46:08 +00:00
errors.md doc: fix ERR_TLS_RENEGOTIATION_DISABLED text 2023-01-07 23:53:25 +00:00
esm.md esm: allow resolve to return import assertions 2023-01-12 01:57:45 +00:00
events.md 2023-01-24, Version 19.5.0 (Current) 2023-01-24 18:16:02 -03:00
fs.md 2023-02-02, Version 19.6.0 (Current) 2023-02-02 11:04:44 -05:00
globals.md doc: add history section to fetch-related globals 2022-10-29 12:49:52 +00:00
http2.md doc: use console.error for error case in http2 2022-11-23 06:34:37 +00:00
http.md doc: add response.strictContentLength to documentation 2023-02-14 19:55:52 +00:00
https.md doc: https update default request timeout 2023-01-13 08:32:19 +00:00
index.md src: add initial support for single executable applications 2023-02-18 02:49:18 +00:00
inspector.md doc: add tip for session.post function 2023-01-29 03:32:23 +00:00
intl.md doc: fix icu-small example 2022-06-30 09:34:10 -04:00
module.md lib: codify findSourceMap return value when not found 2022-08-27 23:13:53 +00:00
modules.md doc: use "file system" instead of "filesystem" 2023-01-14 01:10:38 +00:00
n-api.md doc: add Node-API media link 2023-01-15 21:08:45 +00:00
net.md doc: add documentation for socket.destroySoon() 2023-01-28 06:00:45 +00:00
os.md 2023-02-02, Version 18.14.0 'Hydrogen' (LTS) 2023-02-02 14:08:50 -05:00
packages.md doc: fix typos in packages.md 2022-12-24 21:04:19 +01:00
path.md doc: add lint rule to enforce trailing commas 2022-11-17 13:19:12 +00:00
perf_hooks.md doc: add PerformanceObserver.supportedEntryTypes to doc 2023-01-11 19:58:41 +00:00
permissions.md doc: move policy docs to the permissions scope 2022-09-05 16:07:45 +00:00
policy.md doc: move policy docs to the permissions scope 2022-09-05 16:07:45 +00:00
process.md 2023-02-02, Version 19.6.0 (Current) 2023-02-02 11:04:44 -05:00
punycode.md doc: format doc/api/*.md with markdown formatter 2021-10-20 11:59:11 +02:00
querystring.md doc: remove Legacy status from querystring 2022-10-09 15:22:50 +00:00
readline.md doc: add lint rule to enforce trailing commas 2022-11-17 13:19:12 +00:00
repl.md doc: update error message of example in repl 2022-12-24 20:09:54 +00:00
report.md doc: use "file system" instead of "filesystem" 2023-01-14 01:10:38 +00:00
single-executable-applications.md src: add initial support for single executable applications 2023-02-18 02:49:18 +00:00
stream.md stream: add abort signal for ReadableStream and WritableStream 2023-02-17 11:09:08 +00:00
string_decoder.md doc: add node: prefix for all core modules 2022-04-20 10:23:41 +02:00
synopsis.md doc: use ASCII apostrophes consistently 2022-05-17 20:04:51 +01:00
test.md doc: fix test runner examples 2023-02-10 11:46:24 +00:00
timers.md doc: use console.error for error case in timers and tls 2023-01-01 06:41:28 +00:00
tls.md doc: add note to tls docs about secureContext availability 2023-01-18 01:53:41 +00:00
tracing.md src: trace threadpool event 2022-11-01 04:21:13 +00:00
tty.md doc: add node: prefix for all core modules 2022-04-20 10:23:41 +02:00
url.md 2023-01-05, Version 18.13.0 'Hydrogen' (LTS) 2023-01-05 19:57:23 -05:00
util.md lib: add aborted() utility function 2023-02-07 17:43:57 +00:00
v8.md 2023-02-02, Version 19.6.0 (Current) 2023-02-02 11:04:44 -05:00
vm.md 2023-02-02, Version 19.6.0 (Current) 2023-02-02 11:04:44 -05:00
wasi.md doc: add lint rule to enforce trailing commas 2022-11-17 13:19:12 +00:00
webcrypto.md crypto: use WebIDL converters in WebCryptoAPI 2023-01-17 08:57:58 +00:00
webstreams.md doc: remove unused functions from example of streamConsumers.text 2023-02-13 03:46:03 +00:00
worker_threads.md doc: add lint rule to enforce trailing commas 2022-11-17 13:19:12 +00:00
zlib.md doc: add lint rule to enforce trailing commas 2022-11-17 13:19:12 +00:00