Files
formipay/node_modules/remove-accents/README.md
dwindown e8fbfb14c1 fix: prevent asset conflicts between React and Grid.js versions
Add coexistence checks to all enqueue methods to prevent loading
both React and Grid.js assets simultaneously.

Changes:
- ReactAdmin.php: Only enqueue React assets when ?react=1
- Init.php: Skip Grid.js when React active on admin pages
- Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0
- Customer.php, Product.php, License.php: Add coexistence checks

Now the toggle between Classic and React versions works correctly.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-18 17:02:14 +07:00

72 lines
1.4 KiB
Markdown

# 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