0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc/api
cjihrig 58a59a8d6b
doc: improve createRequire() example
Update the example to use import and import.meta.url instead
of require() and require.resolve().

PR-URL: https://github.com/nodejs/node/pull/27762
Fixes: https://github.com/nodejs/node/issues/27758
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
2019-05-20 10:22:44 -04:00
..
addons.md
assert.md tools: prohibit assert.doesNotReject() in Node.js core 2019-04-27 18:22:27 +02:00
async_hooks.md src: do not reuse async resource in http parsers 2019-04-22 11:51:46 -07:00
buffer.md 2019-04-23, Version 12.0.0 (Current) 2019-04-23 16:46:54 +01:00
child_process.md child_process: change the defaults maxBuffer size 2019-04-17 14:05:15 -07:00
cli.md bootstrap: --frozen-intrinsics unfreeze console 2019-05-20 05:21:01 +02:00
cluster.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
console.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
crypto.md doc: improve CCM example 2019-05-06 21:40:07 +02:00
debugger.md
deprecations.md doc: doc deprecate the legacy http parser 2019-05-09 15:30:58 -04:00
dgram.md 2019-04-23, Version 12.0.0 (Current) 2019-04-23 16:46:54 +01:00
dns.md doc: dns.lookup() documentation error code 2019-05-13 16:57:07 -07:00
documentation.md doc: rewrite "About this Documentation" section 2019-05-19 23:06:59 +02:00
domain.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
errors.md repl: handle uncaughtException properly 2019-05-08 08:15:15 +02:00
esm.md esm: --experimental-wasm-modules integration support 2019-05-17 02:25:20 +02:00
events.md 2019-03-28, Version 11.13.0 (Current) 2019-03-28 20:23:29 +01:00
fs.md doc: clarify behavior of fs.mkdir 2019-05-19 09:35:26 -07:00
globals.md lib: move queueMicrotask to stable 2019-03-08 08:19:38 -06:00
http2.md http, http2: remove default server timeout 2019-05-09 08:54:04 -07:00
http.md http, http2: remove default server timeout 2019-05-09 08:54:04 -07:00
https.md http: servername === false should disable SNI 2019-04-30 06:43:22 -07:00
index.md
inspector.md doc: add inspector API example for heapdump 2019-03-11 06:19:11 +01:00
intl.md
modules.md doc: improve createRequire() example 2019-05-20 10:22:44 -04:00
n-api.md doc: remove stability highlight for stable functions 2019-05-19 23:07:16 -07:00
net.md benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
os.md doc: fix section sorting, add link reference 2019-04-03 22:44:53 +03:00
path.md doc: fix extname with the correct description 2019-04-20 17:01:09 +03:00
perf_hooks.md benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
policy.md
process.md 2019-04-23, Version 12.0.0 (Current) 2019-04-23 16:46:54 +01:00
punycode.md
querystring.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
readline.md 2019-04-11, Version 11.14.0 (Current) 2019-04-11 17:56:55 +01:00
repl.md repl: handle uncaughtException properly 2019-05-08 08:15:15 +02:00
report.md report: print common items first for readability 2019-04-27 12:04:36 +02:00
stream.md stream: use readableObjectMode public api for js stream 2019-05-19 23:37:51 +02:00
string_decoder.md
synopsis.md
timers.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
tls.md tls: expose built-in root certificates 2019-05-20 11:09:02 +02:00
tracing.md
tty.md doc: specify return type for tty.isatty() 2019-04-09 23:06:46 +03:00
url.md
util.md util: include reference anchor for circular structures 2019-05-20 14:20:59 +02:00
v8.md doc: remove outdated link 2019-04-09 16:43:04 -04:00
vm.md
worker_threads.md worker: add ability to unshift message from MessagePort 2019-05-19 22:01:34 +02:00
zlib.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00