Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2019-10-24 01:35:13 +0300
committerRich Trott <rtrott@gmail.com>2019-10-26 21:25:43 +0300
commit0ed22668bb2605a0f1515aec3944e51f8d90129e (patch)
tree97767df7331ae97eac76d83c561e71816346a561 /doc/api/addons.md
parent10040500da6af33b602e35c3f3bbe28cf76c4c4a (diff)
doc: delete "a number of" things in the docs
Delete "a number of" phrases in the docs. See what I did there? Ha ha. Ha ha. Ha. ...heh.. <clears throat/> PR-URL: https://github.com/nodejs/node/pull/30103 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/addons.md')
-rw-r--r--doc/api/addons.md28
1 files changed, 13 insertions, 15 deletions
diff --git a/doc/api/addons.md b/doc/api/addons.md
index 6b440bf6746..774be1a7aaa 100644
--- a/doc/api/addons.md
+++ b/doc/api/addons.md
@@ -34,16 +34,14 @@ involving knowledge of several components and APIs:
off-loading work via libuv to non-blocking system operations, worker threads
or a custom use of libuv's threads.
-* Internal Node.js libraries. Node.js itself exports a number of C++ APIs
- that Addons can use &mdash; the most important of which is the
- `node::ObjectWrap` class.
+* Internal Node.js libraries. Node.js itself exports C++ APIs that Addons can
+ use, the most important of which is the `node::ObjectWrap` class.
-* Node.js includes a number of other statically linked libraries including
- OpenSSL. These other libraries are located in the `deps/` directory in the
- Node.js source tree. Only the libuv, OpenSSL, V8 and zlib symbols are
- purposefully re-exported by Node.js and may be used to various extents by
- Addons.
- See [Linking to Node.js' own dependencies][] for additional information.
+* Node.js includes other statically linked libraries including OpenSSL. These
+ other libraries are located in the `deps/` directory in the Node.js source
+ tree. Only the libuv, OpenSSL, V8 and zlib symbols are purposefully
+ re-exported by Node.js and may be used to various extents by Addons. See
+ [Linking to Node.js' own dependencies][] for additional information.
All of the following examples are available for [download][] and may
be used as the starting-point for an Addon.
@@ -331,12 +329,12 @@ try {
### Linking to Node.js' own dependencies
-Node.js uses a number of statically linked libraries such as V8, libuv and
-OpenSSL. All Addons are required to link to V8 and may link to any of the
-other dependencies as well. Typically, this is as simple as including
-the appropriate `#include <...>` statements (e.g. `#include <v8.h>`) and
-`node-gyp` will locate the appropriate headers automatically. However, there
-are a few caveats to be aware of:
+Node.js uses statically linked libraries such as V8, libuv and OpenSSL. All
+Addons are required to link to V8 and may link to any of the other dependencies
+as well. Typically, this is as simple as including the appropriate
+`#include <...>` statements (e.g. `#include <v8.h>`) and `node-gyp` will locate
+the appropriate headers automatically. However, there are a few caveats to be
+aware of:
* When `node-gyp` runs, it will detect the specific release version of Node.js
and download either the full source tarball or just the headers. If the full