kalwar / null_or_empty

A Node.js package that checks if a given string is null or empty.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

null_or_empty

Node CI

A simple Node.js package that checks, if a given string is null or empty.

Usage

First, install the package using npm:

npm install @skalwar/null_or_empty --save

Then, require the package and use it like so:

var isNullOrEmpty = require('@skalwar/null_or_empty');

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

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

License

MIT

About

A Node.js package that checks if a given string is null or empty.

License:MIT License


Languages

Language:Shell 77.9%Language:JavaScript 19.6%Language:Dockerfile 2.5%