is-null-or-empty
v0.0.1
Published
Checks whether a given string is null or empty
Downloads
440
Readme
is-null-or-empty
A Node.js package that checks whether a given string is null or empty. This is an attempt to get familiarized with npm module use and packaging, as well as publishing.
Usage
First, install the package using npm:
npm install is-null-or-empty --save
Then, require the package and use it like so:
var isNullOrEmpty = require('is-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