2012-02-27 20:06:14 +01:00
|
|
|
# About this Documentation
|
|
|
|
|
2017-01-23 04:16:21 +01:00
|
|
|
<!--introduced_in=v0.10.0-->
|
2012-02-27 20:06:14 +01:00
|
|
|
<!-- type=misc -->
|
|
|
|
|
2019-05-16 05:24:21 +02:00
|
|
|
Welcome to the official API reference documentation for Node.js!
|
2012-02-27 20:06:14 +01:00
|
|
|
|
2019-05-16 05:24:21 +02:00
|
|
|
Node.js is a JavaScript runtime built on the [V8 JavaScript engine][].
|
2012-02-27 20:06:14 +01:00
|
|
|
|
2017-12-15 22:49:36 +01:00
|
|
|
## Contributing
|
2016-01-08 19:32:50 +01:00
|
|
|
|
2019-05-21 01:18:46 +02:00
|
|
|
Report errors in this documentation in [the issue tracker][]. See
|
|
|
|
[the contributing guide][] for directions on how to submit pull requests.
|
2016-01-08 19:32:50 +01:00
|
|
|
|
2017-12-15 22:49:36 +01:00
|
|
|
|
2012-02-27 20:06:14 +01:00
|
|
|
## Stability Index
|
|
|
|
|
|
|
|
<!--type=misc-->
|
|
|
|
|
2019-05-23 01:29:11 +02:00
|
|
|
Throughout the documentation are indications of a section's stability. Some APIs
|
|
|
|
are so proven and so relied upon that they are unlikely to ever change at all.
|
|
|
|
Others are brand new and experimental, or known to be hazardous.
|
2012-02-27 20:06:14 +01:00
|
|
|
|
|
|
|
The stability indices are as follows:
|
|
|
|
|
2018-08-27 03:30:48 +02:00
|
|
|
> Stability: 0 - Deprecated. The feature may emit warnings. Backward
|
|
|
|
> compatibility is not guaranteed.
|
2018-05-06 02:59:23 +02:00
|
|
|
|
|
|
|
<!-- separator -->
|
|
|
|
|
2019-05-26 06:18:56 +02:00
|
|
|
> Stability: 1 - Experimental. The feature is not subject to Semantic Versioning
|
|
|
|
> rules. Non-backward compatible changes or removal may occur in any future
|
|
|
|
> release. Use of the feature is not recommended in production environments.
|
2018-05-06 02:59:23 +02:00
|
|
|
|
|
|
|
<!-- separator -->
|
|
|
|
|
2018-08-27 03:30:48 +02:00
|
|
|
> Stability: 2 - Stable. Compatibility with the npm ecosystem is a high
|
|
|
|
> priority.
|
2012-02-27 20:06:14 +01:00
|
|
|
|
2019-05-28 07:59:03 +02:00
|
|
|
Use caution when making use of Experimental features, particularly within
|
|
|
|
modules. End users may not be aware that experimental features are being used.
|
|
|
|
Bugs or behavior changes may surprise end users when Experimental API
|
|
|
|
modifications occur. To avoid surprises, use of an Experimental feature may need
|
|
|
|
a command-line flag. Experimental features may also emit a [warning][].
|
2017-12-15 22:49:36 +01:00
|
|
|
|
2012-03-04 00:51:14 +01:00
|
|
|
## JSON Output
|
2017-12-15 22:49:36 +01:00
|
|
|
<!-- YAML
|
|
|
|
added: v0.6.12
|
|
|
|
-->
|
2012-03-04 00:51:14 +01:00
|
|
|
|
2019-05-23 20:45:49 +02:00
|
|
|
Every `.html` document has a corresponding `.json` document. This is for IDEs
|
|
|
|
and other utilities that consume the documentation.
|
2016-02-04 13:11:17 +01:00
|
|
|
|
|
|
|
## Syscalls and man pages
|
|
|
|
|
|
|
|
System calls like open(2) and read(2) define the interface between user programs
|
2018-03-04 14:46:49 +01:00
|
|
|
and the underlying operating system. Node.js functions
|
2019-05-09 07:12:15 +02:00
|
|
|
which wrap a syscall,
|
2017-12-15 22:49:36 +01:00
|
|
|
like [`fs.open()`][], will document that. The docs link to the corresponding man
|
2016-02-04 13:11:17 +01:00
|
|
|
pages (short for manual pages) which describe how the syscalls work.
|
|
|
|
|
|
|
|
Most Unix syscalls have Windows equivalents, but behavior may differ on Windows
|
2017-03-29 01:46:10 +02:00
|
|
|
relative to Linux and macOS. For an example of the subtle ways in which it's
|
2018-10-30 06:04:25 +01:00
|
|
|
sometimes impossible to replace Unix syscall semantics on Windows, see [Node.js
|
2016-02-04 13:11:17 +01:00
|
|
|
issue 4760](https://github.com/nodejs/node/issues/4760).
|
2016-01-08 19:32:50 +01:00
|
|
|
|
2017-12-15 22:49:36 +01:00
|
|
|
[`fs.open()`]: fs.html#fs_fs_open_path_flags_mode_callback
|
2018-04-09 18:30:22 +02:00
|
|
|
[the contributing guide]: https://github.com/nodejs/node/blob/master/CONTRIBUTING.md
|
2019-05-21 01:18:46 +02:00
|
|
|
[the issue tracker]: https://github.com/nodejs/node/issues/new
|
2019-05-16 05:24:21 +02:00
|
|
|
[V8 JavaScript engine]: https://v8.dev/
|
2019-05-28 07:59:03 +02:00
|
|
|
[warning]: process.html#process_event_warning
|