replacenonenglish
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

commits lang

Replace Non-English ✍️

Replace Non-English is a JavaScript NPM library that provides a function to replace non-English characters in a string with their English counterparts. This is useful for applications that need to convert names, addresses, or other text fields into a common format for processing or storage.

Installation 💾

To install Replace Non-English, simply run the following command in your terminal: 👇

npm i --save-dev replacenonenglish

Usage 👨‍🏫

To use Replace Non-English in your project, you can import the replaceNonEnglish function like this: 👇

import replaceNonEnglish from 'replacenonenglish';

Then, you can use the replaceNonEnglish function to replace non-English characters in a string. For example: 👇

const inputString = 'Привет, мир!';
const result = replaceNonEnglish.replace(inputString);
console.log(result); // Output: "Privet, mir!"

or:

const testString = 'Poznań Gorzów';
console.log(replaceNonEnglish.replace(testString)); // Output: "Poznan, Gorzow!"

Support 🌎

Replace Non-English supports the following non-English characters:

Russian Polish Ukrainian German French Spanish Portuguese Italian License

Replace Non-English is released under the MIT license.

If you have any proposal for this library or any questions, send email on my 📩 adress - oshurekweb@gmail.com :)

Package Sidebar

Install

npm i replacenonenglish

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

4.61 kB

Total Files

4

Last publish

Collaborators

  • antonoshurek