# react-custom-password-mask

> Allows to set a custom char as the mask for a password

Latest version **1.0.10** (published 2015-11-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-custom-password-mask
pnpm add react-custom-password-mask
yarn add react-custom-password-mask
bun add react-custom-password-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.10 |
| Published | 2015-11-13 |
| First published | 2015-11-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | JD Isaacks |
| Maintainers | jisaacks |

## Links

- npm: https://www.npmjs.com/package/react-custom-password-mask
- npm.io page: https://npm.io/package/react-custom-password-mask

## Dependencies (3)

- [react](https://npm.io/package/react.md) ^0.14.2
- [punycode](https://npm.io/package/punycode.md) ^1.3.2
- [react-dom](https://npm.io/package/react-dom.md) ^0.14.2

## Recent versions

- 1.0.10 (latest) — 2015-11-13
- 1.0.9 — 2015-11-13
- 1.0.8 — 2015-11-13
- 1.0.7 — 2015-11-13
- 1.0.6 — 2015-11-13
- 1.0.5 — 2015-11-12
- 1.0.4 — 2015-11-12
- 1.0.3 — 2015-11-12
- 1.0.2 — 2015-11-12
- 1.0.1 — 2015-11-12
- 1.0.0 — 2015-11-12

## README

# React Custom Password Mask

The idea is to make it a drop in replacement for `<input type="password"/>` while being able to use any masking char (instead of the default bullet.)

### Install

```shell
npm install react-custom-password-mask --save
```

### Usage

```javascript
import React from 'react';
import serialize from 'form-serialize';
import CustomMaskedPassword from 'react-custom-password-mask';

export default React.createClass({

  submitHandler(event) {
    event.preventDefault();

    // Using ref: secret
    console.log("Using ref:", this.refs.pswd.value);

    // From form: password=secret
    console.log("From form:", serialize(this.refs.form));
  },

  render() {
    return (
      <form ref="form" onSubmit={this.submitHandler}>
        <CustomMaskedPassword ref="pswd" name="password" mask="X"/>
        <button>Submit</button>
      </form>
    );
  }

}); 

```

You can also use multibyte chars:

```javascript
<MaskInput mask="💩"/>
```

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