ECMAScript modules (in short ES modules [2])
CommonJS is the default Standard for module inclusion. By NodeJS v8.5 provides support for ES Modules.
In order to use ES Modules, you need to add the following to your package.json at the top level:
Mahdhi Rezvi -Understanding ES Modules in Javascript
CommonJS vs ES Modules in NodeJS
2021 - Reich - From CommonJS to ES Modules
2019 - Arora - Understanding Promises in JavaScript
**2018 - Arora - Understanding Design Patterns in JavaScript
2018 - Arora - Understanding Higher-Order Functions in JavaScript
2018 - Arora - Understanding Asynchronous JavaScript
https://npmjs.com
(lightweight) https://npm.io/
Valley of code - Node.js Handbook (PDF)
NodeJS Fiddle
Jack Halon - Introduction to V8 and JavaScript Internals (mirror)
bytenode
https://www.npmjs.com/package/bytenode
https://github.com/bytenode/bytenode
2021 - Abbas - How to Compile Node.js Code Using Bytenode
2019 - Abbas - How to Compile Node.js Code Using Bytenode
https://github.com/herberttn/bytenode-webpack-plugin
^inspired by
https://gitlab.com/shardus/bytenode-webpack-plugin
https://www.npmjs.com/package/bytenode-webpack-plugin
alternative -nwjs
Obfuscating JavaScript code
https://github.com/javascript-obfuscator/javascript-obfuscator
https://obfuscator.io/
https://stackoverflow.com/a/58360440
https://dev.to/anthonys1760/obfuscating-javascript-code-with-nodejs-233
nexe (package node and your script)
nexe - create a single executable out of your node.js apps
nexe extractor - nexeruncator
Package your NodeJS project into an executable with pkg
CommonJS is the default Standard for module inclusion. By NodeJS v8.5 provides support for ES Modules.
In order to use ES Modules, you need to add the following to your package.json at the top level:
JavaScript:
//https://stackoverflow.com/a/62488998
{
"type": "module"
}
Mahdhi Rezvi -Understanding ES Modules in Javascript
CommonJS vs ES Modules in NodeJS
2021 - Reich - From CommonJS to ES Modules
2019 - Arora - Understanding Promises in JavaScript
**2018 - Arora - Understanding Design Patterns in JavaScript
2018 - Arora - Understanding Higher-Order Functions in JavaScript
2018 - Arora - Understanding Asynchronous JavaScript
https://npmjs.com
(lightweight) https://npm.io/
Valley of code - Node.js Handbook (PDF)
NodeJS Fiddle
Jack Halon - Introduction to V8 and JavaScript Internals (mirror)
bytenode
https://www.npmjs.com/package/bytenode
https://github.com/bytenode/bytenode
2021 - Abbas - How to Compile Node.js Code Using Bytenode
2019 - Abbas - How to Compile Node.js Code Using Bytenode
https://github.com/herberttn/bytenode-webpack-plugin
^inspired by
https://gitlab.com/shardus/bytenode-webpack-plugin
https://www.npmjs.com/package/bytenode-webpack-plugin
alternative -nwjs
Obfuscating JavaScript code
https://github.com/javascript-obfuscator/javascript-obfuscator
https://obfuscator.io/
https://stackoverflow.com/a/58360440
https://dev.to/anthonys1760/obfuscating-javascript-code-with-nodejs-233
nexe (package node and your script)
nexe - create a single executable out of your node.js apps
nexe extractor - nexeruncator
Package your NodeJS project into an executable with pkg