# input-field-mask

> Mask Input value with stars, even can't see inspect and change type from password to text

Latest version **1.0.14** (published 2023-05-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install input-field-mask
pnpm add input-field-mask
yarn add input-field-mask
bun add input-field-mask
```

## 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.14 |
| Published | 2023-05-19 |
| First published | 2023-05-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | KNKRao |
| Maintainers | raoknk99 |
| Keywords | input, password, mask, react, hide data from dom |

## Links

- npm: https://www.npmjs.com/package/input-field-mask
- npm.io page: https://npm.io/package/input-field-mask

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.14 (latest) — 2023-05-19
- 1.0.13 — 2023-05-19
- 1.0.12 — 2023-05-19

## README

Masks the input field strings with stars, even can't see by inspecting dom and change input type from password to text.

get value by using callback function called "getVal"

## Install
```
npm i input-field-mask
```

## Example:
********
```
import React from "react";

import InputFieldMask from "input-field-mask";

function App() {

  const [inVal, setInVal] = React.useState("");
  
  return (
    <div className="App">
      <InputFieldMask getVal={(val)=>setInVal(val)}/>
    </div>
  );
}

export default App;
```
****************************************************

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