commons-validator-js

WebJar for commons-validator-js

License

License

Categories

Categories

JavaScript Languages
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

commons-validator-js
Last Version

Last Version

1.0.1337
Release Date

Release Date

Type

Type

jar
Description

Description

commons-validator-js
WebJar for commons-validator-js
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/wix/commons-validator-js

Download commons-validator-js

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/commons-validator-js/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>commons-validator-js</artifactId>
    <version>1.0.1337</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/commons-validator-js/
implementation 'org.webjars.npm:commons-validator-js:1.0.1337'
// https://jarcasting.com/artifacts/org.webjars.npm/commons-validator-js/
implementation ("org.webjars.npm:commons-validator-js:1.0.1337")
'org.webjars.npm:commons-validator-js:jar:1.0.1337'
<dependency org="org.webjars.npm" name="commons-validator-js" rev="1.0.1337">
  <artifact name="commons-validator-js" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='commons-validator-js', version='1.0.1337')
)
libraryDependencies += "org.webjars.npm" % "commons-validator-js" % "1.0.1337"
[org.webjars.npm/commons-validator-js "1.0.1337"]

Dependencies

compile (4)

Group / Artifact Type Version
org.webjars.npm » bower-auto-release jar [1.1.161,2)
org.webjars.npm : lodash.includes jar [4.3.0,5)
org.webjars.npm : punycode jar [1.4.1,2)
org.webjars.npm : wnpm-ci jar [8.0.38,9)

Project Modules

There are no modules declared in this project.

commons-validator-js

NPM version Bower version Downloads

JavaScript port of Apache Commons Validator.

Usage - npm

Install the library with npm install commons-validator-js

var EmailValidator = require('commons-validator-js').EmailValidator;

var validator = new EmailValidator();
validator.isValid('[email protected]'); //=> true
validator.isValid('[email protected]'); //=> false (can your validator do this?)

Usage - bower

Install the library: bower install commons-validator-js. Add a reference: 'bower_components/commons-validator-js/dist/commons-validator-js.js'

Then use the global constructor: var EmailValidator = CommonsValidator.EmailValidator; and proceed as shown in the npm usage example above.

org.webjars.npm

Wix.com

Open-sourcing useful pieces of code

Versions

Version
1.0.1337