0.5.0 • Published 1 year ago

remove-accents v0.5.0

Weekly downloads
431,707
License
MIT
Repository
github
Last release
1 year ago

remove-accents

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

npm install remove-accents

Unit tests

About

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

Syntax

import removeAccents from 'remove-accents';

removeAccents(inputString)

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

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.

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.

import removeAccents from 'remove-accents';

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

remove

Alias of removeAccents.

import removeAccents from 'remove-accents';

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

License

MIT

@busyapi/mempass-jssb-collection-file@accounting-query-language/engine@determapp/viewer-data-generatordominio-atendimento@qrea/aql@payment-rails/afx-api-v2@qrea/comptafifa-bot-tasks@infinitebrahmanuniverse/nolb-remo@everything-registry/sub-chunk-2649store-indexspensrslprsanitazenemjs@fox-lms/editormiscordmiscord-betalegigood-censoritdlibidb-suggestermakemkv-utilsmailwomankmk-node-pagsegurokotlikhas-texthubot-detailed-helphttpdiskhorizon-youtube-mp3keystone-blocksjazz-coremongoose-transform-field-pluginneapolitan-wrappernames-classificationnautiljon-scrapernautiljon-scraper-modmatch-sorterlunatic-suggesterps-guinenspelias-parserpelias-labelspelias-analysispelias-apinovel-crawler-vnrosaenlg-pluralize-estruly-uniquetweeter-client@alfonsobries/xlsx-laravel-spreadsheet-importer@aero/sanitizer@busyapi/mempass@burh/nuxt-core@cityssm/unleet128981semzub@dicelette/corezubtesttoday@financial-times/politics@financial-times/g-components@eatingdots/title@foxxie/sanitize@golocalinteractive/storage-essentials-components@googleforcreators/story-editor@gigigo/docbooks@insomnia-dev/miscord@liveauctioneers/hammer-ui-liveauctioneers@limegroup/lime-rs-components@empye/core@s-ui/js@sbesson/json-db@please.com/serverless-models@simrail-sdk/api@spaceshiphk/spaceship-ui@tanstack/match-sorter-utils@tanstack-rtl/match-sorter-utils@remp/remp-segment-builder@reuters-graphics/server-client@textkernel/oneui@zionapps/coreadafruit-mcp23008-ssd1306-node-driver@wordpress/url@wordpress/fields@wordpress/dataviews@wordpress/block-editor@wordpress/block-library@wordpress/blocks@wordpress/components@wordpress/editor@vivareal/javascript-utilscode-clouddilabr_statesautomarkeraurelia-resourcesaurelia-resources-extraautosuggest-highlightbaaka-itachicensoring.jseventsquare-gate
0.5.0

1 year ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.0

9 years ago

0.1.0

9 years ago