check-null-string
v1.0.0
Published
A simple module to check whether the passed string is null or not.
Downloads
3
Maintainers
Readme
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