2020-11-22 10:54:56 +00:00
|
|
|
<!DOCTYPE html>
|
2011-12-20 04:57:45 +00:00
|
|
|
<html lang="en">
|
2010-10-28 12:18:54 +00:00
|
|
|
<head>
|
2011-12-20 04:57:45 +00:00
|
|
|
<meta charset="utf-8">
|
2017-09-28 20:27:29 +00:00
|
|
|
<meta name="viewport" content="width=device-width">
|
2020-06-30 19:35:28 +00:00
|
|
|
<meta name="nodejs.org:node-version" content="__VERSION__">
|
2016-08-01 17:31:28 +00:00
|
|
|
<title>__SECTION__ | Node.js __VERSION__ Documentation</title>
|
2019-09-24 07:02:52 +00:00
|
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic&display=fallback">
|
2011-12-12 22:19:14 +00:00
|
|
|
<link rel="stylesheet" href="assets/style.css">
|
2020-05-16 19:54:24 +00:00
|
|
|
<link rel="stylesheet" href="assets/hljs.css">
|
2015-08-13 16:14:34 +00:00
|
|
|
<link rel="canonical" href="https://nodejs.org/api/__FILENAME__.html">
|
2022-03-22 21:31:56 +00:00
|
|
|
<script async defer src="assets/api.js" type="text/javascript"></script>
|
2023-11-27 15:57:21 +00:00
|
|
|
<script>
|
|
|
|
const storedTheme = localStorage.getItem('theme');
|
|
|
|
|
|
|
|
// Follow operating system theme preference
|
|
|
|
if (storedTheme === null && window.matchMedia) {
|
|
|
|
const mq = window.matchMedia('(prefers-color-scheme: dark)');
|
|
|
|
if (mq.matches) {
|
|
|
|
document.documentElement.classList.add('dark-mode');
|
|
|
|
}
|
|
|
|
} else if (storedTheme === 'dark') {
|
|
|
|
document.documentElement.classList.add('dark-mode');
|
|
|
|
}
|
|
|
|
</script>
|
2022-06-27 16:31:44 +00:00
|
|
|
__JS_FLAVORED_DYNAMIC_CSS__
|
2010-10-28 12:18:54 +00:00
|
|
|
</head>
|
2012-02-27 18:59:51 +00:00
|
|
|
<body class="alt apidoc" id="api-section-__FILENAME__">
|
2015-01-14 08:00:59 +00:00
|
|
|
<div id="content" class="clearfix">
|
2023-09-26 17:18:29 +00:00
|
|
|
<div role="navigation" id="column2" class="interior">
|
2016-02-11 19:11:09 +00:00
|
|
|
<div id="intro" class="interior">
|
|
|
|
<a href="/" title="Go back to the home page">
|
2016-04-12 17:25:44 +00:00
|
|
|
Node.js
|
2016-02-11 19:11:09 +00:00
|
|
|
</a>
|
2015-01-14 08:00:59 +00:00
|
|
|
</div>
|
2016-02-11 19:11:09 +00:00
|
|
|
__GTOC__
|
2015-01-14 08:00:59 +00:00
|
|
|
</div>
|
2012-01-22 04:02:16 +00:00
|
|
|
|
2015-01-14 08:00:59 +00:00
|
|
|
<div id="column1" data-id="__ID__" class="interior">
|
2022-02-24 11:00:42 +00:00
|
|
|
<header class="header">
|
2020-11-22 10:54:56 +00:00
|
|
|
<div class="header-container">
|
2021-03-20 13:03:12 +00:00
|
|
|
<h1>Node.js __VERSION__ documentation</h1>
|
2021-01-24 06:28:31 +00:00
|
|
|
<button class="theme-toggle-btn" id="theme-toggle-btn" title="Toggle dark mode/light mode" aria-label="Toggle dark mode/light mode" hidden>
|
2020-11-22 10:54:56 +00:00
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon dark-icon" height="24" width="24">
|
|
|
|
<path fill="none" d="M0 0h24v24H0z" />
|
|
|
|
<path d="M11.1 12.08c-2.33-4.51-.5-8.48.53-10.07C6.27 2.2 1.98 6.59 1.98 12c0 .14.02.28.02.42.62-.27 1.29-.42 2-.42 1.66 0 3.18.83 4.1 2.15A4.01 4.01 0 0111 18c0 1.52-.87 2.83-2.12 3.51.98.32 2.03.5 3.11.5 3.5 0 6.58-1.8 8.37-4.52-2.36.23-6.98-.97-9.26-5.41z"/>
|
|
|
|
<path d="M7 16h-.18C6.4 14.84 5.3 14 4 14c-1.66 0-3 1.34-3 3s1.34 3 3 3h3c1.1 0 2-.9 2-2s-.9-2-2-2z"/>
|
|
|
|
</svg>
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon light-icon" height="24" width="24">
|
|
|
|
<path d="M0 0h24v24H0z" fill="none" />
|
|
|
|
<path d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7l1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z"/>
|
|
|
|
</svg>
|
|
|
|
</button>
|
|
|
|
</div>
|
2015-01-14 08:00:59 +00:00
|
|
|
<div id="gtoc">
|
2017-01-23 03:16:21 +00:00
|
|
|
<ul>
|
2022-03-22 21:31:56 +00:00
|
|
|
<li class="pinned-header">Node.js __VERSION__</li>
|
2022-02-24 11:00:42 +00:00
|
|
|
__TOC_PICKER__
|
|
|
|
__GTOC_PICKER__
|
2017-09-14 00:37:32 +00:00
|
|
|
__ALTDOCS__
|
2022-02-24 11:00:42 +00:00
|
|
|
<li class="picker-header">
|
|
|
|
<a href="#">
|
2024-03-27 23:35:22 +00:00
|
|
|
<span class="picker-arrow"></span>
|
2022-02-24 11:00:42 +00:00
|
|
|
Options
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="picker">
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="all.html">View on single page</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="__FILENAME__.json">View as JSON</a>
|
|
|
|
</li>
|
|
|
|
__EDIT_ON_GITHUB__
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</li>
|
2017-01-23 03:16:21 +00:00
|
|
|
</ul>
|
2015-01-14 08:00:59 +00:00
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
</header>
|
2012-02-27 18:59:51 +00:00
|
|
|
|
2021-01-24 02:58:26 +00:00
|
|
|
__TOC__
|
2012-02-27 18:59:51 +00:00
|
|
|
|
2023-09-26 17:35:09 +00:00
|
|
|
<div role="main" id="apicontent">
|
2015-01-14 08:00:59 +00:00
|
|
|
__CONTENT__
|
2020-06-30 19:35:28 +00:00
|
|
|
<!-- API END -->
|
2015-01-14 08:00:59 +00:00
|
|
|
</div>
|
2012-01-22 04:02:16 +00:00
|
|
|
</div>
|
2015-01-14 08:00:59 +00:00
|
|
|
</div>
|
2021-01-14 16:56:09 +00:00
|
|
|
</body>
|
2011-07-14 22:56:15 +00:00
|
|
|
</html>
|