{"id":20028238,"url":"https://github.com/dvho/lose","last_synced_at":"2026-05-12T15:36:11.330Z","repository":{"id":132428259,"uuid":"484267265","full_name":"dvho/lose","owner":"dvho","description":"As a response to Flay, which flays the diacricial marks off your strings, Lose loses the base characters but keeps the combining diacricial marks.","archived":false,"fork":false,"pushed_at":"2024-12-05T03:33:34.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T04:44:28.290Z","etag":null,"topics":["diacritics","diacritics-removal","flatten","flattening","javascript","javascript-library","library","normalization","npm","npm-module","npm-package","npmjs","regex","regex-match","regex-pattern","vanilla-javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dvho.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-22T02:18:06.000Z","updated_at":"2024-12-05T03:33:38.000Z","dependencies_parsed_at":"2025-01-12T17:27:35.610Z","dependency_job_id":"34977218-37b4-431a-9d66-1d6c7428eff5","html_url":"https://github.com/dvho/lose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dvho/lose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvho%2Flose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvho%2Flose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvho%2Flose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvho%2Flose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dvho","download_url":"https://codeload.github.com/dvho/lose/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvho%2Flose/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32945902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["diacritics","diacritics-removal","flatten","flattening","javascript","javascript-library","library","normalization","npm","npm-module","npm-package","npmjs","regex","regex-match","regex-pattern","vanilla-javascript"],"created_at":"2024-11-13T09:13:51.581Z","updated_at":"2026-05-12T15:36:11.312Z","avatar_url":"https://github.com/dvho.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lose\nAs a response to [_Flay_](https://www.npmjs.com/package/flay), which flays the diacritical marks off your strings, [_Lose_](https://www.npmjs.com/package/lose) loses the base characters but keeps the combining diacritical marks.\n\n_________________________\n## API\n### lose(`string`)\n```js\nvar lose = require('lose');\n```\n\u0026nbsp;\n_________________________\n#### -- Example --\n```js\nconst splitCombiningCharsArray = lose('I’m emailing my friend Chloë from a café in Chișinău.');\n\nsplitCombiningCharsArray.forEach(i =\u003e console.log(`For ${i.character} the diacritical mark is ${i.diacritic}, so we'll split it from ${i.character} and lose ${i.lose}.`));\n```\n\u003e Output will be:\n```\n\"For ë the diacritical mark is   ̈  , so we'll split it from ë and lose e.\"\n\"For é the diacritical mark is   ́  , so we'll split it from é and lose e.\"\n\"For ș the diacritical mark is   ̗  , so we'll split it from ŗ and lose r.\"\n\"For ă the diacritical mark is   ̆  , so we'll split it from ă and lose a.\"\n```\n_________________________\n\u0026nbsp;\n## Notes\nAs a response to [_Flay_](https://www.npmjs.com/package/flay), which flays the diacritical marks off your strings, [_Lose_](https://www.npmjs.com/package/lose) loses the base characters but keeps the combining diacritical marks. [_Lose_](https://www.npmjs.com/package/lose) features attention to ISO 192-383 and a whole lot more. Currently supporting: Afrikaans, Albanian, Azerbaijani, Basque, Bosnian, Catalan, Cebuano, Corsican, Croatian, Czech, Danish, Dutch, Eastern Frisian, \\*English, Esperanto, Estonian, Filipino, Finnish, French, Gaelic, Galician, German, Haitian Creole, Hausa, Hawaiian, \\*Hmong Thoob Teb, Hungarian, Icelandic, Igbo, Italian, Javanese, \\*Kinyarwanda, Kurdish, Latvian, Lithuanian, Luxembourgish, Maltese, Maori, North Frisian, Northern Sotho, Norwegian, Polish, Portuguese, Romanian, \\*Samoan, Scottish Gaelic, \\*Shona, Slovak, Slovenian, \\*Somali, Southern Sotho, Spanish, Sundanese, \\*Swahili, Swedish, Tagalog, Turkish, Turkmen, Vietnamese, \\*Welsh, Western Frisian, Xhosa, Yoruba, \\*Zulu\n\n\\*No regular diacritical marks\n\n## Installation\nWith [npm](http://npmjs.org) do\n```bash\n$ npm install lose\n```\n\n## License\n(MIT)\n\nCopyright (c) 2022 David H. \u0026lt;email6@gmail.com\u0026gt;\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvho%2Flose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvho%2Flose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvho%2Flose/lists"}