# is-present

> Check whether a value is nonblank.

Latest version **1.0.0** (published 2015-09-30) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-09-30 |
| First published | 2015-01-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | John Otander |
| Maintainers | johno |
| Keywords | string, present, presence, nonblank, blank, whitespace, object, array, empty |

## Links

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

## Dependencies (1)

- [is-blank](https://npm.io/package/is-blank.md) 1.0.0

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-09-30
- 0.0.1 — 2015-01-06

## README

# is-present [![Build Status](https://travis-ci.org/johnotander/is-present.svg?branch=master)](https://travis-ci.org/johnotander/is-present)

Check whether a value is nonblank.

## Installation

```
npm i --save is-present
```

## Usage

```javascript
var isPresent = require('is-present');

isPresent([]);              // => false
isPresent({});              // => false
isPresent(0);               // => false
isPresent(function(){});    // => false
isPresent(null);            // => false
isPresent(undefined);       // => false
isPresent('');              // => false
isPresent('    ');          // => false
isPresent('\r\t\n ');       // => false

isPresent(['a', 'b']);      // => true
isPresent({ a: 'b' });      // => true
isPresent('string');        // => true
isPresent(42);              // => true
isPresent(function(a,b){}); // => true
```

## Acknowledgements

A negation for [is-blank](https://github.com/johnotander/is-blank) which extends
[is-empty](https://github.com/ianstormtaylor/is-empty) and
[is-whitespace](https://github.com/jonschlinkert/is-whitespace).

## License

MIT

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Crafted with <3 by [John Otander](http://johnotander.com) ([@4lpine](https://twitter.com/4lpine)).

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