# is-whitespace

> Returns true if the value passed is all whitespace.

Latest version **0.3.0** (published 2015-03-31) · MIT license · 0 weekly downloads

> **Better alternative:** Use str.trim() === "" or /^\s*$/.test(str) — Consider using a lighter alternative

## Install

```sh
npm install is-whitespace
pnpm add is-whitespace
yarn add is-whitespace
bun add is-whitespace
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2015-03-31 |
| First published | 2014-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Jon Schlinkert |
| Maintainers | jonschlinkert |
| Keywords | character, characters, check, is, match, regex, space, string, test, white, whitespace |

## Links

- npm: https://www.npmjs.com/package/is-whitespace
- Repository: https://github.com/jonschlinkert/is-whitespace
- Issues: https://github.com/jonschlinkert/is-whitespace/issues
- npm.io page: https://npm.io/package/is-whitespace

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 0.3.0 (latest) — 2015-03-31
- 0.2.0 — 2014-09-02
- 0.1.0 — 2014-06-15

## README

# is-whitespace [![NPM version](https://badge.fury.io/js/is-whitespace.svg)](http://badge.fury.io/js/is-whitespace)  [![Build Status](https://travis-ci.org/jonschlinkert/is-whitespace.svg)](https://travis-ci.org/jonschlinkert/is-whitespace) 

> Returns true if the value passed is all whitespace.

## Install with [npm](npmjs.org)

```bash
npm i is-whitespace --save
```

## Usage

```js
var isWhitespace = require('is-whitespace');
console.log(isWhitespace('              '));
//=> true
```

## Related projects
 * [is-glob](https://github.com/jonschlinkert/is-glob): Returns `true` if the given string looks like a glob pattern.
 * [is-absolute](https://github.com/jonschlinkert/is-absolute): Return true if a file path is absolute.
 * [is-relative](https://github.com/jonschlinkert/is-relative): Returns `true` if the path appears to be relative.  

## Running tests
Install dev dependencies:

```bash
npm i -d && npm test
```

## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-whitespace/issues)

## Author

**Jon Schlinkert**

+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) 

## License
Copyright (c) 2014-2015 Jon Schlinkert  
Released under the MIT license

***

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 31, 2015._

---
_Source: https://npm.io/package/is-whitespace · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
