On this page

🌐 Pre-requisites

🌐 C/C++ and JavaScript

Node-API 的目的是使你能够从 JavaScript 使用现有的或新编写的 C/C++ 代码。这至少假定你对 JavaScript 和 C/C++ 有一定了解。所需的熟悉程度取决于你的项目复杂性以及你在 JavaScript 和 C/C++ 方面的参与程度。

🌐 The purpose of Node-API is to enable you to use your existing or newly written C/C++ code from JavaScript. This assumes at least a passing familiarity with both JavaScript and C/C++. The level of familiarity necessary is dependent upon the complexity of your project and your involvement with the JavaScript and the C/C++.

对于你自己的项目,有必要理解你计划整合的 C/C++ 代码,以及你希望在 JavaScript 方面实现的项目目标。

🌐 For your own projects, it will be necessary to have an understanding of the C/C++ code you plan to integrate as well as what objectives you hope to achieve with your project on the JavaScript side of things.

🌐 Command line tools

许多用于开发 Node-API 模块的工具都是从命令行运行的。因此,对命令行工具至少应有一点熟悉并具备一定的自信心是必不可少的。IDE,如这里所描述的,可以提供帮助。但它们也依赖于命令行。

🌐 Many of the tools used to develop Node-API modules are run from the command line. So at least a passing familiarity and confidence with your command line tool is essential. IDEs, as described here can help. But they also rely in the command line.