D
D
Dimka52015-11-26 15:25:04
Node.js
Dimka5, 2015-11-26 15:25:04

How to execute a file with the default program from nodejs?

I use NodeJS in conjunction with NW.JS.
What are the ways? modules? it is possible exactly NodeJS means, without NW, JS?
For example: run an exe file, open a folder, open a picture in the default program

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2015-11-26
@Dimka5

There is a ready-made package: https://www.npmjs.com/package/open
There are actually three lines of code inside, EMNIP :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question