0.0.1 • Published 8 years ago

is-null-or-empty v0.0.1

Weekly downloads
180
License
MIT
Repository
github
Last release
8 years ago

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