# strip-falsy

> Strip falsy properties from an object

Latest version **1.0.0** (published 2015-12-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install strip-falsy
pnpm add strip-falsy
yarn add strip-falsy
bun add strip-falsy
```

## 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-12-10 |
| First published | 2015-12-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Evan Lucas |
| Maintainers | evanlucas |

## Links

- npm: https://www.npmjs.com/package/strip-falsy
- Repository: https://github.com/helpdotcom/strip-falsy
- Issues: https://github.com/helpdotcom/strip-falsy/issues
- npm.io page: https://npm.io/package/strip-falsy

## Recent versions

- 1.0.0 (latest) — 2015-12-10

## README

# strip-falsy

[![Build Status](https://travis-ci.org/helpdotcom/strip-falsy.svg)](https://travis-ci.org/helpdotcom/strip-falsy)
[![Coverage Status](https://coveralls.io/repos/helpdotcom/strip-falsy/badge.svg?branch=master&service=github)](https://coveralls.io/github/helpdotcom/strip-falsy?branch=master)

Strip falsy properties from an object.

**Note: The package actually creates a new object that has all of the**
**non-falsy properties of the input instead of deleting the properties.**
**This is done for performance reasons.**

## Install

```bash
$ npm install --save strip-falsy
```

## Usage

```js
var strip = require('strip-falsy')
var input = {
  a: false
, b: 0
, c: null
, d: undefined
, e: ''
, f: 'biscuits'
, g: '0'
}
var out = strip(input)
// => { f: 'biscuits', g: '0' }
```

## Test

```bash
$ npm test
```

## Author

Evan Lucas

## License

MIT (See `LICENSE` for more info)

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