|  | --- | 
|  | # Licensed to the Apache Software Foundation (ASF) under one or more | 
|  | # contributor license agreements.  See the NOTICE file distributed with | 
|  | # this work for additional information regarding copyright ownership. | 
|  | # The ASF licenses this file to You under the Apache License, Version 2.0 | 
|  | # (the "License"); you may not use this file except in compliance with | 
|  | # the License.  You may obtain a copy of the License at | 
|  | # | 
|  | # http://www.apache.org/licenses/LICENSE-2.0 | 
|  | # | 
|  | # Unless required by applicable law or agreed to in writing, software | 
|  | # distributed under the License is distributed on an "AS IS" BASIS, | 
|  | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
|  | # See the License for the specific language governing permissions and | 
|  | # limitations under the License. | 
|  |  | 
|  | layout: docpage | 
|  | title: Node.js | 
|  | description: Using Apache Royale with Node.js | 
|  | permalink: /features/nodejs | 
|  | --- | 
|  |  | 
|  | # Node.js and Apache Royale | 
|  |  | 
|  | Compile AS3 code to JS and run on Node.js | 
|  |  | 
|  | Apache Royale can transpile [ActionScript](features/as3) to JavaScript and run on [Node.js](https://nodejs.org/). In this way you get all the benefits of AS3 language in Node. Check the following topics to get started: | 
|  |  | 
|  | * [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 the npm registry. | 
|  |  | 
|  | * [External modules](features/nodejs/external-modules) explains how to use third-party modules installed from the npm registry in ActionScript. | 
|  |  | 
|  | ## Related example | 
|  |  | 
|  | * [Hello Node: How to transpile ActionScript for Node.js](https://royale.apache.org/hello-node-how-to-transpile-actionscript-for-node-js/){:target='_blank'} |