Skip to main content

Built and signed on GitHub Actions

A module to convert German strings to upper- or lowercase.

This package works with Bun, Cloudflare Workers, Node.js, Deno, Browsers
JSR Score
100%
Published
3 months ago (1.0.4)

A module to convert German strings to upper- or lowercase.

Instead of converting lower-case ß (U+00DF) into upper-case SS, as "ß".toLocaleUpperCase("de-DE") does, this module converts Eszett into upper-case (U+1E9E).

Upper-case was adopted in standard German orthography in 2017. The standard Unicode algorithm for converting to uppercase, however, still uses SS.

Examples

Example 1

import { toGermanUpperCase } from "@mark/german-cases";

console.log("Straße".toLocaleUpperCase("de-DE")); // => "STRASSE"
console.log(toGermanUpperCase("Straße")); // => "STRAẞE"
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @mark/german-cases

Import symbol

import * as mod from "@mark/german-cases";

Add Package

npx jsr add @mark/german-cases

Import symbol

import * as mod from "@mark/german-cases";

Add Package

yarn dlx jsr add @mark/german-cases

Import symbol

import * as mod from "@mark/german-cases";

Add Package

pnpm dlx jsr add @mark/german-cases

Import symbol

import * as mod from "@mark/german-cases";

Add Package

bunx jsr add @mark/german-cases

Import symbol

import * as mod from "@mark/german-cases";