1.0.2 • Published 9 years ago
nullornot v1.0.2
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 --saveThen, 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")); // falseLicense
Apache 2.0