Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

valib

riquito693Apache-2.02.0.0

A validation library for both the browser and Node.js

validation, amd, browser, server, client, util

readme

Valib.js

A standalone javascript library tailored for validation.

Works either as

  • a nodeJS module
  • an AMD module
  • a browser library

You can read the docs and run the tests at http://www.sideralis.org/valib/.

Contribute

Fork & pull request. Don't forget about tests.
If you plan to add a feature please create an issue before.

License

Copyright 2012 Riccardo Attilio Galli riccardo@sideralis.org [http://www.sideralis.org]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

changelog

2.0.0 - 2014-05-01

  • String.toNumber() now returns null instead of NaN
  • String.toNumber() accept the same options of String.isNumeric()
  • Date.isTheNextDay() has been renamed to Date.isNextDay
  • Date.isThePreviousDay() has been renamed to Date.isPreviousDay()
  • Reviewed internal documentation
  • Refactoring to follow common naming and formatting rules
  • Refactored trim() to adhere with standards
  • Reset undefined to ensure that nobody modified it
  • Tests can be run either with 'make test' or 'npm test'
  • Added testling support in package.json
  • Removed chai.js dependencies
  • New documentation website at http://www.sideralis.org/valib/

1.0.0 - 2014-03-10

  • First stable release