1.0.2 • Published 8 years ago

nullornot v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

nullornot

elad nova's npm tutorial: https://eladnava.com/publishing-your-first-package-to-npm/

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 nullornot --save

Then, require the package and use it like so:

var isNullOrEmpty = require('nullornot');

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

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

License

Apache 2.0