# remove-accents

> Converting the accented characters to their corresponding non-accented ASCII characters.

Latest version **0.5.0** (published 2023-08-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install remove-accents
pnpm add remove-accents
yarn add remove-accents
bun add remove-accents
```

## Health

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

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

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.0 |
| Published | 2023-08-08 |
| First published | 2015-12-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 170 |
| Author | Marin Atanasov |
| Maintainers | tyxla, jsnajdr |
| Keywords | accent, accents, remove, diacritic, clean, formatting, umlaut, grave, circumflex, tilde, acute |

## Links

- npm: https://www.npmjs.com/package/remove-accents
- Repository: https://github.com/tyxla/remove-accents
- Issues: https://github.com/tyxla/remove-accents/issues
- npm.io page: https://npm.io/package/remove-accents

## 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

- 0.5.0 (latest) — 2023-08-08
- 0.4.4 — 2022-11-24
- 0.4.3 — 2022-09-21
- 0.4.2 — 2017-11-06
- 0.4.1 — 2017-08-07
- 0.4.0 — 2017-01-29
- 0.3.0 — 2016-06-15
- 0.2.0 — 2016-01-25
- 0.1.0 — 2015-12-12

## README

# remove-accents

Removes the accents from a string, converting them to their corresponding non-accented ASCII characters.

```
npm install remove-accents
```

[![Unit tests](https://github.com/tyxla/remove-accents/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/tyxla/remove-accents/actions/workflows/unit-tests.yml)

## About

An easy to use solution for converting all accented characters to their corresponding non-accented ASCII characters.

## Syntax

``` js
import removeAccents from 'remove-accents';

removeAccents(inputString)
```

Alternatively, you could use the CommonJS syntax to import it:

``` js
const removeAccents = require('remove-accents');
```

#### inputString

The string that you wish to remove accents from.

## Usage

Call `removeAccents()` by passing the string you wish to remove accents from, and you will get the non-accented string as result.

``` js
const input = 'ÀÁÂÃÄÅ';
const output = removeAccents(input);

console.log(output); // AAAAAA
```

## Methods

The exported function also has helper methods.

#### has

Determine if a string has any accented characters.

``` js
import removeAccents from 'remove-accents';

console.log(removeAccents.has('ÀÁÂÃÄÅ')); // true
console.log(removeAccents.has('ABC'));    // false
```

#### remove

Alias of `removeAccents`.

``` js
import removeAccents from 'remove-accents';

console.log(removeAccents.remove('ÀÁÂÃÄÅ')); // AAAAAA
```

## License

MIT

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