You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2019/10/28 17:49:27 UTC
[royale-docs] 02/02: Node.js tweaks
This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-docs.git
commit cd2253df3dc6325d38c61c4a2327733890230e10
Author: Josh Tynjala <jo...@bowlerhat.dev>
AuthorDate: Mon Oct 28 10:49:13 2019 -0700
Node.js tweaks
---
features/nodejs.md | 8 ++++----
features/nodejs/external-modules.md | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/features/nodejs.md b/features/nodejs.md
index a5ad5ea..7b12203 100644
--- a/features/nodejs.md
+++ b/features/nodejs.md
@@ -22,10 +22,10 @@ permalink: /features/nodejs
# Node.js and Apache Royale
-Compile ActionScript code to JavaScript and run on Node.js
-
-There are two main approaches to targeting the popular [Node.js](https://nodejs.org/) JavaScript runtime with Apache Royale and the [ActionScript](features/as3) language.
+Compile [ActionScript](features/as3) code to JavaScript and run on [Node.js](https://nodejs.org/)
[Command line scripting](features/nodejs/scripting) explains how to call Node.js APIs from ActionScript, compile to JavaScript, and run the generated script from the command line.
-[Node.js modules](features/nodejs/modules) explains how to compile a Node.js module with ActionScript that can be loaded with `require()` and deployed to npm.
\ No newline at end of file
+[Node.js modules](features/nodejs/modules) explains how to compile a Node.js module with ActionScript that can be loaded with `require()` and deployed to the npm registry.
+
+[External modules](features/nodejs/external-modules) explains how to use third-party modules installed from the npm registry in ActionScript.
\ No newline at end of file
diff --git a/features/nodejs/external-modules.md b/features/nodejs/external-modules.md
index f32f508..2ab9ecb 100644
--- a/features/nodejs/external-modules.md
+++ b/features/nodejs/external-modules.md
@@ -22,11 +22,11 @@ permalink: /features/nodejs/external-modules
# Load external Node.js modules with Apache Royale
-Expose Node.js modules installed from npm to ActionScript
+Expose Node.js modules installed from the npm registry to ActionScript
By creating [type definitions](features/externs) with special metadata, developers can use [Node.js](features/nodejs) modules from [ActionScript](features/as3) code.
-Let's try to use the [boxen](https://www.npmjs.com/package/boxen) module from [npm](https://www.npmjs.com/) in ActionScript. This module draws a box around a string to display in the console, and it exposes many styling options like colors, padding, and alignment.
+Let's try to use the [boxen](https://www.npmjs.com/package/boxen) module from [the npm registry](https://www.npmjs.com/) in ActionScript. This module draws a box around a string to display in the console, and it exposes many styling options like colors, borders, and alignment.
First, make sure to install the boxen module in your project's root folder:
@@ -34,7 +34,7 @@ First, make sure to install the boxen module in your project's root folder:
npm install boxen
```
-> To install a module from npm, you must have [Node.js](https://nodejs.org/) installed.
+> To install a module from [the npm registry](https://www.npmjs.com/), you must have [Node.js](https://nodejs.org/) installed.
## Define the module's API in ActionScript