# conceal

> Conceals a string or part of it behind a specific character

Latest version **1.0.0** (published 2013-12-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install conceal
pnpm add conceal
yarn add conceal
bun add conceal
```

## 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 | 2013-12-02 |
| First published | 2013-12-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Sergi Mansilla |
| Maintainers | sergi |
| Keywords | string, mask, conceal, password, hide |

## Links

- npm: https://www.npmjs.com/package/conceal
- Repository: https://github.com/sergi/conceal
- Issues: https://github.com/sergi/conceal/issues
- npm.io page: https://npm.io/package/conceal

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2013-12-02

## README

# conceal

Obfuscates a string or a part of it. I've needed this functionality several
times now and I've decided to make a micro-module for it. It is useful to
conceal sensitive strings such as passwords, or parts of a string, e.g. a
credit card to show the user.

``` js
var conceal = require('conceal');

var str = 'Big Secret';

conceal(str);
// '**********'

conceal(str, { ch: '^' });
// '^^^^^^^^^^'

conceal(str, { start: 4, end: 6 });
// 'Big ***ret'

```

## License

MIT

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