file with variables accessible by any of the code. But after a while the stuff will come naturally to you.
Another thing I really love about Node.js is NPM(Node Package Manager). NPM is a package manager similar to apt-get that comes with Node.js. In the NPM, you can install modules, and publish modules. I’ve already wrote a few modules, to help me out on my own applications.
Some modules I wrote already are:
A module to check how much free space, and total space the hard drive has. Node.js didn’t really have any native functions for this. This module works on both Linux, Mac and Windows. On *nix systems it uses
and on Windows it calls a small little C# application I wrote called DriveSpace(My first C# app) that comes bundled with the module.
A simple generic round-robin. Great for database connections pools.
A simple but powerful email wrapper around Nodemailer. Also uses Basic Template, another tiny module I wrote.
A module to detect if a IP is valid, it’s version and check if its within a certain range. I mainly wrote this to use in node_CloudFlare.
I use CloudFlare to supercharge my websites. I wanted this in Node.js, and I couldn’t really find any existing modules, So I wrote my own.
A simple module to mask emails, domains and even regular strings! Will turn
So those are some of the modules I wrote so far. I really enjoy Node.js, but sometimes it feels overkill compared to just whipping out a
and just writing something quickly. I guess I’ll get more used to Node.js and get better at it as time goes on. I also want to get in to mobile development, so I think Node.js would be a great tool to write backend’s in.