chriso/node-validator — pull request #110 by meaku (2012-09-13 10:03:47+00:00)
Title: Remove dependency to native node-module "net" 

I'm using [webpack](https://github.com/webpack/webpack) (similar to browserify) in order to use my node-modules in the browser.

I've seen the validator.js for browser-use but doing it the node-way is more convenient for me, so i prefer using webpack over including a js-file directly.

The problem is the dependency **net** in ```validators.isIP()```, because it doesn't exist in a browser-environment.

If you get rid of this dependency, everyone using browserify or webpack could easily bundle your validator-module. I copied the methods used in the **net** module directly into the validator.js.

The only problem is that we have to keep the method updated with the node-version, but that should be no problem with node becoming more mature and IP-signature won't change anytime soon, right?