Skip to content
A sample npm package
JavaScript TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
package-lock.json
package.json
tsconfig.json
tslint.json

README.md

NOTICE: THIS IS A SAMPLE REPOSITORY FOR A BLOG I WROTE ON MEDIUM.

universal-validator

A string validation library for node

Build Status Coverage Status

Installation

npm install universal-validator --save

Usage

Javascript

var validator = require('universal-validator');
console.log(validator.IsNullOrEmpty(' '));
Output should be true

TypeScript

import * as validator from 'universal-validator';
console.log(validator.IsNullOrEmpty('Apple'))
Output should be false
You can’t perform that action at this time.