mithril-validator icon indicating copy to clipboard operation
mithril-validator copied to clipboard

Export as standalone object?

Open gilbert opened this issue 9 years ago • 0 comments

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')

gilbert avatar Apr 10 '15 21:04 gilbert