MCPcopy Create free account
hub / github.com/denoland/std / fetchUnicodeData

Function fetchUnicodeData

cli/_tools/generate_data.ts:31–41  ·  view source on GitHub ↗
(filename: string, version: string)

Source from the content-addressed store, hash-verified

29];
30
31async function fetchUnicodeData(filename: string, version: string) {
32 const res = await fetch(
33 `https://www.unicode.org/Public/${version}/ucd/${filename}`,
34 );
35
36 if (!res.ok) {
37 throw new Error(`Failed to fetch ${filename}: status ${res.status}`);
38 }
39
40 return await res.text();
41}
42
43const EffectiveWidth = {
44 Zero: 0,

Callers 2

loadEastAsianWidthsFunction · 0.85
loadZeroWidthsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected