javascript - How to get output file from NodeJS? -


let's have such code on app.js:

const = require('./somefile'); console.log(something); 

i know work in node environment not in browser. how "compile" app.js , output file? can put output file browser.

this doesnt work: node app.js outputfile.js


Comments