tv
tower-validator
npm i tower-validator
tv

tower-validator

Minimal, extensible validation component.

by viatropos

0.1.0 (see all)TypeScript:Not Found
npm i tower-validator
Readme

Tower Validator

Minimal, extensible validation component.

Installation

node.js:

$ npm install tower-validator

browser:

$ component install tower-validator

Examples

var validator = require('tower-validator');

validator('eq', function eq(a, b){
  return a === b;
});

validator('neq', function neq(a, b){
  return a !== b;
});

validator('gte', function gte(a, b){
  return a >= b;
});

validator('gt', function gte(a, b){
  return a > b;
});

Testing

Install testem:

$ npm install -g testem

Run tests:

$ testem

Then, open all the browsers you want to test by going to the outputted url defaulted to http://localhost:7357

Tests will run on any open browser linked to the stated url and your current Node environment.

Contributing

Before you send a pull request, make sure your code meets the style guidelines at https://github.com/tower/style-guide and all tests pass.

Licence

MIT

Downloads/wk

5

GitHub Stars

0
No data available

LAST COMMIT

NaNyrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

0

OPEN PRs

0
No data available
VersionTagPublished
0.1.0
latest
9yrs ago
No alternatives found
No tutorials found
Add a tutorial