remove-accents

WebJar for remove-accents

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

remove-accents
Last Version

Last Version

0.4.2
Release Date

Release Date

Type

Type

jar
Description

Description

remove-accents
WebJar for remove-accents
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/tyxla/remove-accents

Download remove-accents

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/remove-accents/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>remove-accents</artifactId>
    <version>0.4.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/remove-accents/
implementation 'org.webjars.npm:remove-accents:0.4.2'
// https://jarcasting.com/artifacts/org.webjars.npm/remove-accents/
implementation ("org.webjars.npm:remove-accents:0.4.2")
'org.webjars.npm:remove-accents:jar:0.4.2'
<dependency org="org.webjars.npm" name="remove-accents" rev="0.4.2">
  <artifact name="remove-accents" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='remove-accents', version='0.4.2')
)
libraryDependencies += "org.webjars.npm" % "remove-accents" % "0.4.2"
[org.webjars.npm/remove-accents "0.4.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

remove-accents

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

npm install remove-accents

Build Status

About

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

Syntax

removeAccents(inputString)

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.

var input = 'ÀÁÂÃÄÅ';
var output = removeAccents(input);

console.log(output); // AAAAAA

Methods

The exported function also has helper methods.

has

Determine if a string has any accented characters.

var accents = require('remove-accents');

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

remove

Alias of removeAccents.

var accents = require('remove-accents');

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

License

MIT

Versions

Version
0.4.2