npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

whitespace-regex

0.1.2

@jonschlinkert

npmHomeRepoSnykSocket
Downloads:6998
$ npm install whitespace-regex
DailyWeeklyMonthlyYearly

whitespace-regex NPM version

Regular expression for matching the whitespace in a string.

Install

Install with npm

$ npm i whitespace-regex --save

Usage

var regex = require('whitespace-regex')();

regex.test('      foo    ');
//=> false

regex.test('             ');
//=> true

Other regex projects

  • copyright-regex: Regex for matching and parsing copyright statements. | homepage
  • is-equal-regex: Returns true if regular expression A is equal to regex B. Compares the expression and… more | homepage
  • todo-regex: Regular expression for matching TODO statements in a string. | homepage

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Jon Schlinkert

  • github/jonschlinkert
  • twitter/jonschlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on September 22, 2015.