1.0.0 • Published 7 years ago
check-null-string v1.0.0
check-null-string
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 check-null-string --save
Then, require the package and use it like so:
var checkNullString = require('check-null-string');
console.log(checkNullString("")); // true
console.log(checkNullString(null)); // true
console.log(checkNullString(undefined)); // true
console.log(checkNullString("Hello World")); // false
License
MIT
1.0.0
7 years ago