Import custom HTML element with shadow DOM

RequireJS in Web Worker

Note: workers can not access DOM. Use xmlHttpRequest for AJAX.

Debugging Node script

Put debugger; in your script to create a break point.

node debug script.js

setBreakpoint(42)

watch("expression")

cont, next, repl

Read documentation for more.