Search This Blog

Showing posts with label nodejs. Show all posts
Showing posts with label nodejs. Show all posts

Tuesday, January 14, 2014

HTTP URL Validity Check in Nodejs

Http URL Validity can be checked in 2 ways.
  • Using a regular expression to check if the pattern matches
  • Ping to that URL and see if there is a response or not i.e. if it exists or not.
Some times, the pattern matches but the the required URL may be or may not be existing. In order to check this in NodeJs, 'request' module can be used. Both the steps can be done in a single call.

Wednesday, August 21, 2013

Node Js Plugin with Eclipse

       There are so many editors supporting Javascript. But I feel Eclipse as a comfortable one as this is one stop for everything. Till now I have worked on different frameworks of Java and felt Eclipse as the best for debugging and even for remote debugging also. When I started to work for Node JS, I was trying to find some best editors and debugging tools. Tried so many and finally came back to Eclipse. There is a very good plugin available for Node in Eclipse.

       NodeEclipse gives you all the details about the different plugins available. Github site for NodeEclipse gives you all the details about the usage of hese plugins also. Two different sets called ENIDE and NODE NTS are available for Node JS. There are very minor differences in between them. If you carefully observe the below listings, the only difference is ENIDE has some extra editors which support coffee script and also a REST client which is good for debugging purpose.