@6footgeek/validate-whitespace-string

0.0.1 • Public • Published

@6footgeek/validate-whitespace-string

A whitespace validator, whitespace is allowed, but the string cant consist only of whitespace characters.

Installation

$ [sudo] npm install @6footgeek/validate-whitespace-string

Usage

import {validateWhitespaceString} from '@6footgeek/validate-whitespace-string';

validateWhitespaceString('test this string'); // true
validateWhitespaceString('     '); // false

validateWhitespaceString(123); // throws error

License

MIT

Package Sidebar

Install

npm i @6footgeek/validate-whitespace-string

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

7.39 kB

Total Files

13

Last publish

Collaborators

  • 6footgeek