Skip to content
Node.js JavaScript runtime 🐢🚀
JavaScript C++ Python C HTML Makefile Other
Branch: master
Clone or download

Latest commit

rustyconover and Trott tls: reduce memory copying and number of BIO buffer allocations
Avoid copying buffers before passing to SSL_write if there
are zero length buffers involved.  Only copy the data when
the buffer has a non zero length.

Send a memory allocation hint to the crypto BIO about how much
memory will likely be needed to be allocated by the next call
to SSL_write.  This makes a single allocation rather than the BIO
allocating a buffer for each 16k TLS segment written.  This
solves a problem with large buffers written over TLS triggering
V8's GC.

PR-URL: #31499
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Latest commit 8b1efe0 Jan 24, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github doc: remove .github/ISSUE_TEMPLATE.md in favor of the template folder Feb 7, 2020
benchmark tls: reduce memory copying and number of BIO buffer allocations Feb 29, 2020
deps deps: V8: backport f7771e5b0cc4 Feb 28, 2020
doc errors: remove unused ERR_SOCKET_CANNOT_SEND error Feb 28, 2020
lib errors: remove unused ERR_SOCKET_CANNOT_SEND error Feb 28, 2020
src tls: reduce memory copying and number of BIO buffer allocations Feb 29, 2020
test test: change test to not be sensitive to buffer send size Feb 29, 2020
tools tools: add NODE_TEST_NO_INTERNET to the doc builder Feb 25, 2020
.clang-format tools: add `make format-cpp` to run clang-format on C++ diffs Aug 3, 2018
.cpplint tools: move cpplint configuration to .cpplint Apr 8, 2019
.editorconfig tools: change editorconfig's 'ignore' to 'unset' Jun 30, 2019
.eslintignore test: run eslint on test file and fix errors Dec 15, 2018
.eslintrc.js lib,tools,test: remove custom number-isnan rule Jan 8, 2020
.flake8 tools: python: ignore instead of select flake8 rules Apr 14, 2019
.gitattributes build,win: fix Python detection on localized OS Sep 6, 2019
.gitignore build: ignore all the "Debug","Release" folders Feb 1, 2020
.mailmap doc: update AUTHORS list Oct 31, 2019
.nycrc test: fix tests that fail under coverage May 22, 2018
.travis.yml tools: allow the travis commit message job to fail Dec 31, 2019
AUTHORS doc: update AUTHORS list Nov 26, 2019
BSDmakefile node: rename from io.js to node Aug 23, 2015
BUILDING.md doc: add prerequisites information for Arch Feb 13, 2020
CHANGELOG.md 2020-02-18, Version 13.9.0 (Current) Feb 18, 2020
CODE_OF_CONDUCT.md doc: simplify CODE_OF_CONDUCT.md Nov 2, 2018
COLLABORATOR_GUIDE.md doc: update job reference in COLLABORATOR_GUIDE.md Jan 31, 2020
CONTRIBUTING.md doc: remove the suffix number of the anchor link Sep 22, 2019
CPP_STYLE_GUIDE.md doc: remove extra backtick Jan 4, 2020
GOVERNANCE.md doc: update GOVERNANCE.md Nov 7, 2019
LICENSE wasi: introduce initial WASI support Nov 30, 2019
Makefile build: fix missing x64 arch suffix in binary tar name Dec 14, 2019
README.md meta: move not-an-aardvark to emeritus Feb 26, 2020
SECURITY.md doc: remove usage of "Node" in favor of "Node.js" Dec 4, 2019
android-configure build: don't create directory for NDK toolchain Mar 22, 2017
common.gypi deps: V8: backport f7771e5b0cc4 Feb 28, 2020
configure build: use Node.js instead of Node in configure Nov 30, 2019
configure.py build: add configure option to debug only Node.js part of the binary Feb 8, 2020
glossary.md doc: add glossary.md Feb 14, 2020
node.gyp build: add missing comma in node.gyp Feb 27, 2020
node.gypi build: add configure option to debug only Node.js part of the binary Feb 8, 2020
vcbuild.bat build: remove enable_vtune from vcbuild.bat Jan 15, 2020

README.md

Node.js

Node.js is an open-source, cross-platform, JavaScript runtime environment. It executes JavaScript code outside of a browser. For more information on using Node.js, see the Node.js Website.

The Node.js project uses an open governance model. The OpenJS Foundation provides support for the project.

This project is bound by a Code of Conduct.

Table of Contents

Support

Looking for help? Check out the instructions for getting support.

Release Types

  • Current: Under active development. Code for the Current release is in the branch for its major version number (for example, v10.x). Node.js releases a new major version every 6 months, allowing for breaking changes. This happens in April and October every year. Releases appearing each October have a support life of 8 months. Releases appearing each April convert to LTS (see below) each October.
  • LTS: Releases that receive Long-term Support, with a focus on stability and security. Every even-numbered major version will become an LTS release. LTS releases receive 12 months of Active LTS support and a further 18 months of Maintenance. LTS release lines have alphabetically-ordered codenames, beginning with v4 Argon. There are no breaking changes or feature additions, except in some special circumstances.
  • Nightly: Code from the Current branch built every 24-hours when there are changes. Use with caution.

Current and LTS releases follow Semantic Versioning. A member of the Release Team signs each Current and LTS release. For more information, see the Release README.

Download

Binaries, installers, and source tarballs are available at https://nodejs.org/en/download/.

Current and LTS Releases

https://nodejs.org/download/release/

The latest directory is an alias for the latest Current release. The latest-codename directory is an alias for the latest release from an LTS line. For example, the latest-carbon directory contains the latest Carbon (Node.js 8) release.

Nightly Releases

https://nodejs.org/download/nightly/

Each directory name and filename contains a date (in UTC time) and the commit SHA at the HEAD of the release.

API Documentation

Documentation for the latest Current release is at https://nodejs.org/api/. Version-specific documentation is available in each release directory in the docs subdirectory. Version-specific documentation is also at https://nodejs.org/download/docs/.

Verifying Binaries

Download directories contain a SHASUMS256.txt file with SHA checksums for the files.

To download SHASUMS256.txt using curl:

$ curl -O https://nodejs.org/dist/vx.y.z/SHASUMS256.txt

To check that a downloaded file matches the checksum, run it through sha256sum with a command such as:

$ grep node-vx.y.z.tar.gz SHASUMS256.txt | sha256sum -c -

For Current and LTS, the GPG detached signature of SHASUMS256.txt is in SHASUMS256.txt.sig. You can use it with gpg to verify the integrity of SHASUM256.txt. You will first need to import the GPG keys of individuals authorized to create releases. To import the keys:

$ gpg --keyserver pool.sks-keyservers.net --recv-keys DD8F2338BAE7501E3DD5AC78C273792F7D83545D

See the bottom of this README for a full script to import active release keys.

Next, download the SHASUMS256.txt.sig for the release:

$ curl -O https://nodejs.org/dist/vx.y.z/SHASUMS256.txt.sig

Then use gpg --verify SHASUMS256.txt.sig SHASUMS256.txt to verify the file's signature.

Building Node.js

See BUILDING.md for instructions on how to build Node.js from source and a list of supported platforms.

Security

For information on reporting security vulnerabilities in Node.js, see SECURITY.md.

Contributing to Node.js

Current Project Team Members

For information about the governance of the Node.js project, see GOVERNANCE.md.

TSC (Technical Steering Committee)

TSC Emeriti

Collaborators

Collaborator Emeriti

Collaborators follow the COLLABORATOR_GUIDE.md in maintaining the Node.js project.

Release Keys

GPG keys used to sign Node.js releases:

To import the full set of trusted release keys:

gpg --keyserver pool.sks-keyservers.net --recv-keys 4ED778F539E3634C779C87C6D7062848A1AB005C
gpg --keyserver pool.sks-keyservers.net --recv-keys B9E2F5981AA6E0CD28160D9FF13993A75599653C
gpg --keyserver pool.sks-keyservers.net --recv-keys 94AE36675C464D64BAFA68DD7434390BDBE9B9C5
gpg --keyserver pool.sks-keyservers.net --recv-keys B9AE9905FFD7803F25714661B63B535A4C206CA9
gpg --keyserver pool.sks-keyservers.net --recv-keys 77984A986EBC2AA786BC0F66B01FBB92821C587A
gpg --keyserver pool.sks-keyservers.net --recv-keys 71DCFD284A79C3B38668286BC97EC7A07EDE3FC1
gpg --keyserver pool.sks-keyservers.net --recv-keys 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600
gpg --keyserver pool.sks-keyservers.net --recv-keys C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8
gpg --keyserver pool.sks-keyservers.net --recv-keys DD8F2338BAE7501E3DD5AC78C273792F7D83545D
gpg --keyserver pool.sks-keyservers.net --recv-keys A48C2BEE680E841632CD4E44F07496B3EB3C1762

See the section above on Verifying Binaries for how to use these keys to verify a downloaded file.

Other keys used to sign some previous releases:

You can’t perform that action at this time.