# filter-invalid-dom-props

> a function to filter props that are not valid dom props when spreading props in an HOC in react

Latest version **3.0.1** (published 2023-06-01) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install filter-invalid-dom-props
pnpm add filter-invalid-dom-props
yarn add filter-invalid-dom-props
bun add filter-invalid-dom-props
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2023-06-01 |
| First published | 2016-10-11 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 20.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Social Tables |
| Maintainers | abenjamin, sramkumar2, ivaswanicasas, dmclaughlin, bporter42, ktst, bmontague-cvent, jcoutee, andymking, liz.thorne, robbe1912, st-awaas, jblackowiak, smiles.socialtables, alok2k5singh, sarahu-cv, mikepato, jrnail23, socialtables-engineering, yi.chen, katherine.thompson, timfoley, hmbang, pixiephreak, mattmcclure, socialtables-deployer, gvorvik, briankim4311, andrewcsontos, jmorley, adamlind, nnarra, ashanevs, sarawegmann, ishak, johnbryant262, pinko-fowle, ldelarosa, pho3nixf1re, _evilnix_, sarthak.chatterjee, joshlartz, kgardi, otaghlabi, dwicks-socialtables, jonathandaigle, j.martin |
| Keywords | react, props, dom, filter-props, dom-props |

## Links

- npm: https://www.npmjs.com/package/filter-invalid-dom-props
- Repository: https://github.com/socialtables/filter-invalid-dom-props
- Homepage: https://github.com/socialtables/filter-invalid-dom-props#readme
- Issues: https://github.com/socialtables/filter-invalid-dom-props/issues
- npm.io page: https://npm.io/package/filter-invalid-dom-props

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 3.0.1 (latest) — 2023-06-01
- 3.0.0 — 2023-06-01
- 2.1.0 — 2021-10-21
- 2.0.0 — 2017-06-18
- 1.0.0 — 2016-10-11

## README

# Filter Invalid DOM Props

[![CircleCI](https://circleci.com/gh/socialtables/filter-invalid-dom-props.svg?style=svg)](https://circleci.com/gh/socialtables/filter-invalid-dom-props)

A simple helper function to filter out invalid dom properties. Useful when spreading into at html element in react applications (and maybe for other things).

## Use

```js
import filterInvalidDOMProps from "filter-invalid-dom-props";
const properties = {
	onClick: () => {},
	value: "cool",
	type: "text",
	christophercolumbus: "notcool"
};
const filteredProps = filterInvalidDOMProps(properties);
/* returns
	{
		onClick: () => {},
		value: "cool",
		type: "text"
	};
*/
```
- - -

Copyright (C) 2016 Social Tables, Inc. (https://www.socialtables.com) All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

	http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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