mithril-validator
mithril-validator copied to clipboard
Export as standalone object?
First of all, great library. It seems like there's nothing mithril-specific about this library, though. Would you consider exporting the Validator
object, instead of directly attaching it to m
?
You would still be able to achieve the same effect like so:
var m = require('mithril')
m.validator = require('mithril-validator')