E
E
Everal2015-10-02 18:35:10
JavaScript
Everal, 2015-10-02 18:35:10

NodeJs How to know if it's enabled or not?

When loading a site, you need to know if Nodejs is running at a local address or not?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timur Shemsedinov, 2015-10-02
@Everal

http.get('http://127.0.0.1/', function() {
  console.log('started');
}).on('error', function() {
  console.log('not started');
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question