Node - script (Javascript)

About

Javascript - Script in the node engine.

Management

Location

Javascript file are generally in the src, lib, or dist directory

Argument Parser

  • commander

Execution

Node

To run the below script with the node engine:

console('Hello World!');
  • At the command line
node HelloWorld.js
Hello World!

Browser

<script src="https://embed.runkit.com" data-element-id="my-element"></script>

<!-- anywhere else on your page -->
<div id="my-element">// GeoJSON!
    var getJSON = require("async-get-json");
    await getJSON("https://storage.googleapis.com/maps-devrel/google.json");
</div>





Discover More
Javascript - Script

A Javascript script is script file with a js extension. A browser script is a run that is run by the browser where Javascript is: in a page via the script element: in a browser extension created...
Node.js

Node is a javascript engine that: add several features such as io (access the file system), network,... that are not accessible in a web browser) miss the browser web api function (no dom,...) In...



Share this page:
Follow us:
Task Runner