Node - script (Javascript)
Table of Contents
1 - About
Javascript - Script in the node engine.
2 - Articles Related
3 - Management
3.1 - Location
Javascript file are generally in the src, lib, or dist directory
3.2 - Argument Parser
- commander
3.3 - Execution
3.3.1 - Node
To run the below script with the node engine:
console('Hello World!');
- At the command line
node HelloWorld.js
Hello World!
3.3.2 - Browser
- Runkit Playground: https://npm.runkit.com/
- Example Stripe
- Runkit: To embedded node code, see https://runkit.com/docs/embed
<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>