1.0.2 • Published 6 years ago

sarabs3 v1.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Sarabs3

A Node.js package that checks whether a given string is null or empty. A basic package for an npm publish tutorial.

Usage

First, install the package using npm:

npm install sarabs3 --save

Then, require the package and use it like so:

var isNullOrEmpty = require('sarabs3');

console.log(isNullOrEmpty("")); // true
console.log(isNullOrEmpty(null)); // true
console.log(isNullOrEmpty(undefined)); // true

console.log(isNullOrEmpty("Hello World")); // false

License

Apache 2.0