0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Myles Borins 411063c6f5
module: add createRequire method
This is an abstraction on top of creatRequireFromPath that can accept
both paths, URL Strings, and URL Objects.

PR-URL: https://github.com/nodejs/node/pull/27405
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2019-05-03 12:12:30 -07:00
..
internal module: add createRequire method 2019-05-03 12:12:30 -07:00
_http_agent.js http: servername === false should disable SNI 2019-04-30 06:43:22 -07:00
_http_client.js async_hooks: fixup do not reuse HTTPParser 2019-05-03 16:02:55 +02:00
_http_common.js async_hooks: fixup do not reuse HTTPParser 2019-05-03 16:02:55 +02:00
_http_incoming.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
_http_outgoing.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
_http_server.js src: do not reuse async resource in http parsers 2019-04-22 11:51:46 -07:00
_stream_duplex.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
_stream_passthrough.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
_stream_readable.js util: access process states lazily in debuglog 2019-04-20 00:30:38 +08:00
_stream_transform.js stream: remove TODO and add a description instead 2019-05-02 23:16:14 +02:00
_stream_wrap.js lib: assign missed deprecation code 2019-03-07 15:48:55 +01:00
_stream_writable.js stream: inline onwriteStateUpdate() 2019-04-16 05:35:26 +02:00
_tls_common.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
_tls_wrap.js tls,cli: add --trace-tls command-line flag 2019-05-02 12:37:54 -04:00
.eslintrc.yaml lib: require globals instead of using the global proxy 2019-04-16 04:24:26 +08:00
assert.js assert: use new language features 2019-04-30 16:22:56 +02:00
async_hooks.js async_hooks: improve AsyncResource performance 2019-04-05 05:37:01 +02:00
buffer.js buffer: remove unreachable code 2019-04-30 06:37:55 -07:00
child_process.js child_process: change the defaults maxBuffer size 2019-04-17 14:05:15 -07:00
cluster.js
console.js console: split console into global.js and constructor.js 2018-12-02 04:51:18 +08:00
constants.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
crypto.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
dgram.js dgram: change 'this' to 'self' for 'isConnected' 2019-04-23 21:42:46 -07:00
dns.js dns: do not indicate invalid IPs are IPv6 2019-04-16 16:19:17 -07:00
domain.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
events.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
fs.js lib: remove Reflect.apply where appropriate 2019-04-30 08:36:55 +02:00
http2.js http2: order declarations in http2.js 2018-11-20 10:42:31 -08:00
http.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
https.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
inspector.js errors: add more information in case of invalid callbacks 2019-04-04 12:51:03 +02:00
module.js
net.js src: move guessHandleType in the util binding 2019-04-20 13:25:41 +08:00
os.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
path.js path: simplify normalizeString 2019-04-18 05:32:10 +02:00
perf_hooks.js lib: require globals instead of using the global proxy 2019-04-16 04:24:26 +08:00
process.js
punycode.js
querystring.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
readline.js lib: require globals instead of using the global proxy 2019-04-16 04:24:26 +08:00
repl.js repl: add autocomplete for filesystem modules 2019-04-29 07:28:27 +05:30
stream.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
string_decoder.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
sys.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
timers.js lib: remove outdated optimizations 2019-04-29 20:46:53 +08:00
tls.js benchmark,lib: change var to const 2019-03-30 13:16:39 +01:00
trace_events.js trace_events: remove usage of require('util') 2019-03-24 18:28:07 +08:00
tty.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
url.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
util.js lib: require globals instead of using the global proxy 2019-04-16 04:24:26 +08:00
v8.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
vm.js module: initialize module_wrap.callbackMap during pre-execution 2019-04-25 12:11:10 +08:00
worker_threads.js worker: use copy of process.env 2019-03-30 22:25:35 +01:00
zlib.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00