validator-nu-angular

1.0.1 • Public • Published

Nu Validator for AngularJS

Build Status devDependency Status Dependency Status Code Climate

NPM

What This?

This is a wrapper of node-validator-nu for angularJS

What differences between node-validator-nu and this?

node-validator-nu checks "pure" HTML. i.e. There are tags sandwiched between html+header, and body. However AngularJS templates, esp template page and directive, are not sandwiched between html stuff.

This API wisely sandwiches template code with html stuff. Of course, you can check normal pages.

How to use

Also just simple:

/*global exports, require*/
(function (exports, require) {
    var vnu = require("validator-nu-angular");
    // Put HTML data, not the name of the file.
    vnu.validate("html here", function () {
        // callback
    });
    // If you got validatornu was not found, set vnu path to 3rd parameter.
    vnu.validate("html here", function () {
        // callback
    }, "/usr/bin/vnu.jar");
}(exports, require));

Readme

Keywords

none

Package Sidebar

Install

npm i validator-nu-angular

Weekly Downloads

5

Version

1.0.1

License

MIT

Last publish

Collaborators

  • hyamamoto