1.0.0 • Published 7 years ago

check-null-string v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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