{ "type": "module", "source": "doc/api/documentation.md", "introduced_in": "v0.10.0", "miscs": [ { "textRaw": "About this Documentation", "name": "About this Documentation", "introduced_in": "v0.10.0", "type": "misc", "desc": "

The goal of this documentation is to comprehensively explain the Node.js\nAPI, both from a reference as well as a conceptual point of view. Each\nsection describes a built-in module or high-level concept.

\n

Where appropriate, property types, method arguments, and the arguments\nprovided to event handlers are detailed in a list underneath the topic\nheading.

", "miscs": [ { "textRaw": "Contributing", "name": "contributing", "desc": "

If errors are found in this documentation, please submit an issue\nor see the contributing guide for directions on how to submit a patch.

\n

Every file is generated based on the corresponding .md file in the\ndoc/api/ folder in Node.js's source tree. The documentation is generated\nusing the tools/doc/generate.js program. An HTML template is located at\ndoc/template.html.

", "type": "misc", "displayName": "Contributing" }, { "textRaw": "Stability Index", "name": "Stability Index", "type": "misc", "desc": "

Throughout the documentation are indications of a section's\nstability. The Node.js API is still somewhat changing, and as it\nmatures, certain parts are more reliable than others. Some are so\nproven, and so relied upon, that they are unlikely to ever change at\nall. Others are brand new and experimental, or known to be hazardous\nand in the process of being redesigned.

\n

The stability indices are as follows:

\n
\n

Stability: 0 - Deprecated. The feature may emit warnings. Backward\ncompatibility is not guaranteed.

\n
\n\n
\n

Stability: 1 - Experimental. This feature is still under active development\nand subject to non-backward compatible changes or removal in any future\nversion. Use of the feature is not recommended in production environments.\nExperimental features are not subject to the Node.js Semantic Versioning\nmodel.

\n
\n\n
\n

Stability: 2 - Stable. Compatibility with the npm ecosystem is a high\npriority.

\n
\n

Caution must be used when making use of Experimental features, particularly\nwithin modules that may be used as dependencies (or dependencies of\ndependencies) within a Node.js application. End users may not be aware that\nexperimental features are being used, and therefore may experience unexpected\nfailures or behavior changes when API modifications occur. To help avoid such\nsurprises, Experimental features may require a command-line flag to\nexplicitly enable them, or may cause a process warning to be emitted.\nBy default, such warnings are printed to stderr and may be handled by\nattaching a listener to the 'warning' event.

" }, { "textRaw": "JSON Output", "name": "json_output", "meta": { "added": [ "v0.6.12" ], "changes": [] }, "stability": 1, "stabilityText": "Experimental", "desc": "

Every .html document has a corresponding .json document presenting\nthe same information in a structured manner. This feature is\nexperimental, and added for the benefit of IDEs and other utilities that\nwish to do programmatic things with the documentation.

", "type": "misc", "displayName": "JSON Output" }, { "textRaw": "Syscalls and man pages", "name": "syscalls_and_man_pages", "desc": "

System calls like open(2) and read(2) define the interface between user programs\nand the underlying operating system. Node.js functions\nwhich simply wrap a syscall,\nlike fs.open(), will document that. The docs link to the corresponding man\npages (short for manual pages) which describe how the syscalls work.

\n

Most Unix syscalls have Windows equivalents, but behavior may differ on Windows\nrelative to Linux and macOS. For an example of the subtle ways in which it's\nsometimes impossible to replace Unix syscall semantics on Windows, see Node.js\nissue 4760.

", "type": "misc", "displayName": "Syscalls and man pages" } ] } ] }