Freelance Web Developer | Open Source Developer and Contributor | Sometimes Translation Volunteer
A modern way to remove diacritics from strings. Particularly useful for writing search filters. Modern fork of andrewrk’s node-diacritics.
Home Page: https://www.npmjs.com/package/modern-diacritics
License: MIT License
currently CI does not run on master as the branch name is wrong in the workflow
modern-diacritics/.github/workflows/test.yml
Lines 4 to 6 in cd305b0
The current release (2.2.1) passed testing in the PR and no code changes were comitted since then, so this isn't an immediate issue.
Probably missing a bunch of similar characters that were previously not included as the map was only diacritics originally
Known:
ŋ
The package.json is missing a types declaration resulting in the error when importing
error TS2307: Cannot find module 'modern-diacritics' or its corresponding type declarations
It would be resolved by adding this to package.json
"types": "./dist/index.d.ts",
Once the package.json is fixed you get
Object literal may only specify known properties, and 'removeDiacritics' does not exist in type 'LatinizeOptions'.
This would probably be resolved by adding this to the LatinizeOptions
removeDiacritics?: boolean;
After those fixes I get the following error
node_modules/modern-diacritics/dist/index.d.ts:5:40 - error TS2307: Cannot find module './maps/types' or its corresponding type declarations.
5 export type { CharList, CharMap } from "./maps/types";
~~~~~~~~~~~~~~
Found 1 error in node_modules/modern-diacritics/dist/index.d.ts:5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.