check-null-or-empty

1.0.0 • Public • Published

check-null-or-empty

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-or-empty --save

Then, require the package and use it like so:

var isNullOrEmpty = require('check-null-or-empty');

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

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

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i check-null-or-empty

Weekly Downloads

11

Version

1.0.0

License

MIT

Last publish

Collaborators

  • hapiman