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

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -