guillaumepotier / validator.js

Powerful objects and strings validation in javascript for Node and the browser
http://validatorjs.org
MIT License
255 stars 39 forks source link

How do I include the extras via npm #47

Open cuteboi opened 9 years ago

cuteboi commented 9 years ago

I typically see libraries have a "plugin" directory, or a way to include extensions.

Is there a simpler/cleaner way of including it without a require('node_modules/validator.js/src/extras.js'), this method seems cluttered.