iconv-tiny 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/LICENSE +1 -1
- package/README.md +125 -24
- package/demo.png +0 -0
- package/dist/iconv-tiny.aliases.d.mts +7 -0
- package/dist/iconv-tiny.aliases.mjs +7 -0
- package/dist/iconv-tiny.bundle.mjs +84 -77
- package/dist/iconv-tiny.encodings.d.mts +71 -0
- package/dist/iconv-tiny.encodings.mjs +71 -0
- package/dist/iconv-tiny.runtime.d.mts +106 -0
- package/dist/iconv-tiny.runtime.mjs +21 -0
- package/package.json +23 -89
- package/dist/aliases.mjs +0 -6
- package/dist/encodings/ATARIST.d.mts +0 -7
- package/dist/encodings/ATARIST.mjs +0 -7
- package/dist/encodings/CP037.d.mts +0 -7
- package/dist/encodings/CP037.mjs +0 -7
- package/dist/encodings/CP1006.d.mts +0 -7
- package/dist/encodings/CP1006.mjs +0 -7
- package/dist/encodings/CP1026.d.mts +0 -7
- package/dist/encodings/CP1026.mjs +0 -7
- package/dist/encodings/CP1250.d.mts +0 -7
- package/dist/encodings/CP1250.mjs +0 -7
- package/dist/encodings/CP1251.d.mts +0 -7
- package/dist/encodings/CP1251.mjs +0 -7
- package/dist/encodings/CP1252.d.mts +0 -7
- package/dist/encodings/CP1252.mjs +0 -7
- package/dist/encodings/CP1253.d.mts +0 -7
- package/dist/encodings/CP1253.mjs +0 -7
- package/dist/encodings/CP1254.d.mts +0 -7
- package/dist/encodings/CP1254.mjs +0 -7
- package/dist/encodings/CP1255.d.mts +0 -7
- package/dist/encodings/CP1255.mjs +0 -7
- package/dist/encodings/CP1256.d.mts +0 -7
- package/dist/encodings/CP1256.mjs +0 -7
- package/dist/encodings/CP1257.d.mts +0 -7
- package/dist/encodings/CP1257.mjs +0 -7
- package/dist/encodings/CP1258.d.mts +0 -7
- package/dist/encodings/CP1258.mjs +0 -7
- package/dist/encodings/CP424.d.mts +0 -7
- package/dist/encodings/CP424.mjs +0 -7
- package/dist/encodings/CP437.d.mts +0 -7
- package/dist/encodings/CP437.mjs +0 -7
- package/dist/encodings/CP500.d.mts +0 -7
- package/dist/encodings/CP500.mjs +0 -7
- package/dist/encodings/CP737.d.mts +0 -7
- package/dist/encodings/CP737.mjs +0 -7
- package/dist/encodings/CP775.d.mts +0 -7
- package/dist/encodings/CP775.mjs +0 -7
- package/dist/encodings/CP850.d.mts +0 -7
- package/dist/encodings/CP850.mjs +0 -7
- package/dist/encodings/CP852.d.mts +0 -7
- package/dist/encodings/CP852.mjs +0 -7
- package/dist/encodings/CP855.d.mts +0 -7
- package/dist/encodings/CP855.mjs +0 -7
- package/dist/encodings/CP856.d.mts +0 -7
- package/dist/encodings/CP856.mjs +0 -7
- package/dist/encodings/CP857.d.mts +0 -7
- package/dist/encodings/CP857.mjs +0 -7
- package/dist/encodings/CP860.d.mts +0 -7
- package/dist/encodings/CP860.mjs +0 -7
- package/dist/encodings/CP861.d.mts +0 -7
- package/dist/encodings/CP861.mjs +0 -7
- package/dist/encodings/CP862.d.mts +0 -7
- package/dist/encodings/CP862.mjs +0 -7
- package/dist/encodings/CP863.d.mts +0 -7
- package/dist/encodings/CP863.mjs +0 -7
- package/dist/encodings/CP864.d.mts +0 -7
- package/dist/encodings/CP864.mjs +0 -7
- package/dist/encodings/CP865.d.mts +0 -7
- package/dist/encodings/CP865.mjs +0 -7
- package/dist/encodings/CP866.d.mts +0 -7
- package/dist/encodings/CP866.mjs +0 -7
- package/dist/encodings/CP869.d.mts +0 -7
- package/dist/encodings/CP869.mjs +0 -7
- package/dist/encodings/CP874.d.mts +0 -7
- package/dist/encodings/CP874.mjs +0 -7
- package/dist/encodings/CP875.d.mts +0 -7
- package/dist/encodings/CP875.mjs +0 -7
- package/dist/encodings/ISO-8859-1.d.mts +0 -7
- package/dist/encodings/ISO-8859-1.mjs +0 -7
- package/dist/encodings/ISO-8859-10.d.mts +0 -7
- package/dist/encodings/ISO-8859-10.mjs +0 -7
- package/dist/encodings/ISO-8859-11.d.mts +0 -7
- package/dist/encodings/ISO-8859-11.mjs +0 -7
- package/dist/encodings/ISO-8859-13.d.mts +0 -7
- package/dist/encodings/ISO-8859-13.mjs +0 -7
- package/dist/encodings/ISO-8859-14.d.mts +0 -7
- package/dist/encodings/ISO-8859-14.mjs +0 -7
- package/dist/encodings/ISO-8859-15.d.mts +0 -7
- package/dist/encodings/ISO-8859-15.mjs +0 -7
- package/dist/encodings/ISO-8859-16.d.mts +0 -7
- package/dist/encodings/ISO-8859-16.mjs +0 -7
- package/dist/encodings/ISO-8859-2.d.mts +0 -7
- package/dist/encodings/ISO-8859-2.mjs +0 -7
- package/dist/encodings/ISO-8859-3.d.mts +0 -7
- package/dist/encodings/ISO-8859-3.mjs +0 -7
- package/dist/encodings/ISO-8859-4.d.mts +0 -7
- package/dist/encodings/ISO-8859-4.mjs +0 -7
- package/dist/encodings/ISO-8859-5.d.mts +0 -7
- package/dist/encodings/ISO-8859-5.mjs +0 -7
- package/dist/encodings/ISO-8859-6.d.mts +0 -7
- package/dist/encodings/ISO-8859-6.mjs +0 -7
- package/dist/encodings/ISO-8859-7.d.mts +0 -7
- package/dist/encodings/ISO-8859-7.mjs +0 -7
- package/dist/encodings/ISO-8859-8.d.mts +0 -7
- package/dist/encodings/ISO-8859-8.mjs +0 -7
- package/dist/encodings/ISO-8859-9.d.mts +0 -7
- package/dist/encodings/ISO-8859-9.mjs +0 -7
- package/dist/encodings/KOI8-R.d.mts +0 -7
- package/dist/encodings/KOI8-R.mjs +0 -7
- package/dist/encodings/KOI8-U.d.mts +0 -7
- package/dist/encodings/KOI8-U.mjs +0 -7
- package/dist/encodings/KZ1048.d.mts +0 -7
- package/dist/encodings/KZ1048.mjs +0 -7
- package/dist/encodings/MAC-CYRILLIC.d.mts +0 -7
- package/dist/encodings/MAC-CYRILLIC.mjs +0 -7
- package/dist/encodings/MAC-GREEK.d.mts +0 -7
- package/dist/encodings/MAC-GREEK.mjs +0 -7
- package/dist/encodings/MAC-ICELAND.d.mts +0 -7
- package/dist/encodings/MAC-ICELAND.mjs +0 -7
- package/dist/encodings/MAC-LATIN2.d.mts +0 -7
- package/dist/encodings/MAC-LATIN2.mjs +0 -7
- package/dist/encodings/MAC-ROMAN.d.mts +0 -7
- package/dist/encodings/MAC-ROMAN.mjs +0 -7
- package/dist/encodings/MAC-TURKISH.d.mts +0 -7
- package/dist/encodings/MAC-TURKISH.mjs +0 -7
- package/dist/encodings/NEXTSTEP.d.mts +0 -7
- package/dist/encodings/NEXTSTEP.mjs +0 -7
- package/dist/encodings/US-ASCII.d.mts +0 -7
- package/dist/encodings/US-ASCII.mjs +0 -7
- package/dist/encodings/index.d.mts +0 -65
- package/dist/encodings/index.mjs +0 -64
- package/dist/iconv-tiny.mjs +0 -10
- package/dist/sbe.mjs +0 -14
- package/types/aliases.d.mts +0 -1
- package/types/iconv-tiny.d.mts +0 -82
- package/types/sbe.d.mts +0 -8
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of Iconv-Tiny v1.0.0
|
|
3
|
-
* (c) 2025-present vip.delete
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/
|
|
6
|
-
import { SBEF } from "../sbe.mjs";
|
|
7
|
-
export const KOI8_R = new SBEF("KOI8-R","─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xA0⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of Iconv-Tiny v1.0.0
|
|
3
|
-
* (c) 2025-present vip.delete
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/
|
|
6
|
-
import { SBEF } from "../sbe.mjs";
|
|
7
|
-
export const KOI8_U = new SBEF("KOI8-U","─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xA0⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of Iconv-Tiny v1.0.0
|
|
3
|
-
* (c) 2025-present vip.delete
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/
|
|
6
|
-
import { SBEF } from "../sbe.mjs";
|
|
7
|
-
export const KZ1048 = new SBEF("KZ1048","ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ\xA0ҰұӘ¤Ө¦§Ё©Ғ«¬®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of Iconv-Tiny v1.0.0
|
|
3
|
-
* (c) 2025-present vip.delete
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/
|
|
6
|
-
import { SBEF } from "../sbe.mjs";
|
|
7
|
-
export const MAC_CYRILLIC = new SBEF("MAC-CYRILLIC","АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»…\xA0ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of Iconv-Tiny v1.0.0
|
|
3
|
-
* (c) 2025-present vip.delete
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/
|
|
6
|
-
import { SBEF } from "../sbe.mjs";
|
|
7
|
-
export const MAC_GREEK = new SBEF("MAC-GREEK","Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»…\xA0ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of Iconv-Tiny v1.0.0
|
|
3
|
-
* (c) 2025-present vip.delete
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/
|
|
6
|
-
import { SBEF } from "../sbe.mjs";
|
|
7
|
-
export const MAC_ICELAND = new SBEF("MAC-ICELAND","ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of Iconv-Tiny v1.0.0
|
|
3
|
-
* (c) 2025-present vip.delete
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/
|
|
6
|
-
import { SBEF } from "../sbe.mjs";
|
|
7
|
-
export const MAC_LATIN2 = new SBEF("MAC-LATIN2","ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»…\xA0ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of Iconv-Tiny v1.0.0
|
|
3
|
-
* (c) 2025-present vip.delete
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/
|
|
6
|
-
import { SBEF } from "../sbe.mjs";
|
|
7
|
-
export const MAC_ROMAN = new SBEF("MAC-ROMAN","ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of Iconv-Tiny v1.0.0
|
|
3
|
-
* (c) 2025-present vip.delete
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/
|
|
6
|
-
import { SBEF } from "../sbe.mjs";
|
|
7
|
-
export const MAC_TURKISH = new SBEF("MAC-TURKISH","ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of Iconv-Tiny v1.0.0
|
|
3
|
-
* (c) 2025-present vip.delete
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/
|
|
6
|
-
import { SBEF } from "../sbe.mjs";
|
|
7
|
-
export const NEXTSTEP = new SBEF("NEXTSTEP","\xA0ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝÞµ×÷©¡¢£⁄¥ƒ§¤’“«‹›fifl®–†‡·¦¶•‚„”»…‰¬¿¹ˋ´ˆ˜¯˘˙¨²˚¸³˝˛ˇ—±¼½¾àáâãäåçèéêëìÆíªîïðñŁØŒºòóôõöæùúûıüýłøœßþÿ��");
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of Iconv-Tiny v1.0.0
|
|
3
|
-
* (c) 2025-present vip.delete
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/
|
|
6
|
-
import { SBEF } from "iconv-tiny/sbe";
|
|
7
|
-
export const US_ASCII: SBEF;
|
|
8
|
-
export const ISO_8859_1: SBEF;
|
|
9
|
-
export const ISO_8859_2: SBEF;
|
|
10
|
-
export const ISO_8859_3: SBEF;
|
|
11
|
-
export const ISO_8859_4: SBEF;
|
|
12
|
-
export const ISO_8859_5: SBEF;
|
|
13
|
-
export const ISO_8859_6: SBEF;
|
|
14
|
-
export const ISO_8859_7: SBEF;
|
|
15
|
-
export const ISO_8859_8: SBEF;
|
|
16
|
-
export const ISO_8859_9: SBEF;
|
|
17
|
-
export const ISO_8859_10: SBEF;
|
|
18
|
-
export const ISO_8859_11: SBEF;
|
|
19
|
-
export const ISO_8859_13: SBEF;
|
|
20
|
-
export const ISO_8859_14: SBEF;
|
|
21
|
-
export const ISO_8859_15: SBEF;
|
|
22
|
-
export const ISO_8859_16: SBEF;
|
|
23
|
-
export const CP500: SBEF;
|
|
24
|
-
export const CP875: SBEF;
|
|
25
|
-
export const CP1026: SBEF;
|
|
26
|
-
export const CP037: SBEF;
|
|
27
|
-
export const CP437: SBEF;
|
|
28
|
-
export const CP737: SBEF;
|
|
29
|
-
export const CP775: SBEF;
|
|
30
|
-
export const CP850: SBEF;
|
|
31
|
-
export const CP852: SBEF;
|
|
32
|
-
export const CP855: SBEF;
|
|
33
|
-
export const CP857: SBEF;
|
|
34
|
-
export const CP860: SBEF;
|
|
35
|
-
export const CP861: SBEF;
|
|
36
|
-
export const CP862: SBEF;
|
|
37
|
-
export const CP863: SBEF;
|
|
38
|
-
export const CP864: SBEF;
|
|
39
|
-
export const CP865: SBEF;
|
|
40
|
-
export const CP866: SBEF;
|
|
41
|
-
export const CP869: SBEF;
|
|
42
|
-
export const CP874: SBEF;
|
|
43
|
-
export const CP1250: SBEF;
|
|
44
|
-
export const CP1251: SBEF;
|
|
45
|
-
export const CP1252: SBEF;
|
|
46
|
-
export const CP1253: SBEF;
|
|
47
|
-
export const CP1254: SBEF;
|
|
48
|
-
export const CP1255: SBEF;
|
|
49
|
-
export const CP1256: SBEF;
|
|
50
|
-
export const CP1257: SBEF;
|
|
51
|
-
export const CP1258: SBEF;
|
|
52
|
-
export const MAC_CYRILLIC: SBEF;
|
|
53
|
-
export const MAC_GREEK: SBEF;
|
|
54
|
-
export const MAC_ICELAND: SBEF;
|
|
55
|
-
export const MAC_LATIN2: SBEF;
|
|
56
|
-
export const MAC_ROMAN: SBEF;
|
|
57
|
-
export const MAC_TURKISH: SBEF;
|
|
58
|
-
export const ATARIST: SBEF;
|
|
59
|
-
export const CP424: SBEF;
|
|
60
|
-
export const CP856: SBEF;
|
|
61
|
-
export const CP1006: SBEF;
|
|
62
|
-
export const KOI8_R: SBEF;
|
|
63
|
-
export const KOI8_U: SBEF;
|
|
64
|
-
export const KZ1048: SBEF;
|
|
65
|
-
export const NEXTSTEP: SBEF;
|
package/dist/encodings/index.mjs
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of Iconv-Tiny v1.0.0
|
|
3
|
-
* (c) 2025-present vip.delete
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/
|
|
6
|
-
export * from "./US-ASCII.mjs";
|
|
7
|
-
export * from "./ISO-8859-1.mjs";
|
|
8
|
-
export * from "./ISO-8859-2.mjs";
|
|
9
|
-
export * from "./ISO-8859-3.mjs";
|
|
10
|
-
export * from "./ISO-8859-4.mjs";
|
|
11
|
-
export * from "./ISO-8859-5.mjs";
|
|
12
|
-
export * from "./ISO-8859-6.mjs";
|
|
13
|
-
export * from "./ISO-8859-7.mjs";
|
|
14
|
-
export * from "./ISO-8859-8.mjs";
|
|
15
|
-
export * from "./ISO-8859-9.mjs";
|
|
16
|
-
export * from "./ISO-8859-10.mjs";
|
|
17
|
-
export * from "./ISO-8859-11.mjs";
|
|
18
|
-
export * from "./ISO-8859-13.mjs";
|
|
19
|
-
export * from "./ISO-8859-14.mjs";
|
|
20
|
-
export * from "./ISO-8859-15.mjs";
|
|
21
|
-
export * from "./ISO-8859-16.mjs";
|
|
22
|
-
export * from "./CP500.mjs";
|
|
23
|
-
export * from "./CP875.mjs";
|
|
24
|
-
export * from "./CP1026.mjs";
|
|
25
|
-
export * from "./CP037.mjs";
|
|
26
|
-
export * from "./CP437.mjs";
|
|
27
|
-
export * from "./CP737.mjs";
|
|
28
|
-
export * from "./CP775.mjs";
|
|
29
|
-
export * from "./CP850.mjs";
|
|
30
|
-
export * from "./CP852.mjs";
|
|
31
|
-
export * from "./CP855.mjs";
|
|
32
|
-
export * from "./CP857.mjs";
|
|
33
|
-
export * from "./CP860.mjs";
|
|
34
|
-
export * from "./CP861.mjs";
|
|
35
|
-
export * from "./CP862.mjs";
|
|
36
|
-
export * from "./CP863.mjs";
|
|
37
|
-
export * from "./CP864.mjs";
|
|
38
|
-
export * from "./CP865.mjs";
|
|
39
|
-
export * from "./CP866.mjs";
|
|
40
|
-
export * from "./CP869.mjs";
|
|
41
|
-
export * from "./CP874.mjs";
|
|
42
|
-
export * from "./CP1250.mjs";
|
|
43
|
-
export * from "./CP1251.mjs";
|
|
44
|
-
export * from "./CP1252.mjs";
|
|
45
|
-
export * from "./CP1253.mjs";
|
|
46
|
-
export * from "./CP1254.mjs";
|
|
47
|
-
export * from "./CP1255.mjs";
|
|
48
|
-
export * from "./CP1256.mjs";
|
|
49
|
-
export * from "./CP1257.mjs";
|
|
50
|
-
export * from "./CP1258.mjs";
|
|
51
|
-
export * from "./MAC-CYRILLIC.mjs";
|
|
52
|
-
export * from "./MAC-GREEK.mjs";
|
|
53
|
-
export * from "./MAC-ICELAND.mjs";
|
|
54
|
-
export * from "./MAC-LATIN2.mjs";
|
|
55
|
-
export * from "./MAC-ROMAN.mjs";
|
|
56
|
-
export * from "./MAC-TURKISH.mjs";
|
|
57
|
-
export * from "./ATARIST.mjs";
|
|
58
|
-
export * from "./CP424.mjs";
|
|
59
|
-
export * from "./CP856.mjs";
|
|
60
|
-
export * from "./CP1006.mjs";
|
|
61
|
-
export * from "./KOI8-R.mjs";
|
|
62
|
-
export * from "./KOI8-U.mjs";
|
|
63
|
-
export * from "./KZ1048.mjs";
|
|
64
|
-
export * from "./NEXTSTEP.mjs";
|
package/dist/iconv-tiny.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of Iconv-Tiny v1.0.0
|
|
3
|
-
* (c) 2025-present vip.delete
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/
|
|
6
|
-
const iconvTinyNS = {};
|
|
7
|
-
(function(){function f(b,a,c){a=g(a);const e=`${a}-${JSON.stringify(c)}`;var d=b.cache.get(e);if(!d){d=b.g.get(a);if(!d)throw Error(`Encoding "${a}" not supported`);d=d.create(c);b.cache.set(e,d)}return d}
|
|
8
|
-
class k{constructor(b,a){this.g=new Map;a=(a||"").split(",").map(c=>c.split(" ").map(g));for(const c of Object.keys(b)){const e=b[c],d=g(c);this.g.set(d,e);for(const h of a)if(h.includes(d))for(const l of h)this.g.set(l,e)}this.cache=new Map}decode(b,a,c){return f(this,a,c).decode(b)}encode(b,a,c){return f(this,a,c).encode(b)}}function g(b){return b.toLowerCase().replace(/[^a-z0-9]/gu,"").replace(/(?<!\d)0+/gu,"")};iconvTinyNS.IconvTiny=k;})();
|
|
9
|
-
export const { IconvTiny } = iconvTinyNS;
|
|
10
|
-
|
package/dist/sbe.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of Iconv-Tiny v1.0.0
|
|
3
|
-
* (c) 2025-present vip.delete
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/
|
|
6
|
-
const sbeNS = {};
|
|
7
|
-
(function(){function q(a){return(new TextDecoder("UTF-16")).decode(a)}function u(a){const b=[];for(let c=0;c<a.length;c+=1024)b.push(String.fromCharCode(...a.subarray(c,c+1024)));return b.join("")}
|
|
8
|
-
function w(a,b){a=new x(a.g);if(b?.graphicMode){var c=b?.graphics?.slice(0,32)??" ☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼";for(var d=0;d<c.length;d++)y(a,d,c.charAt(d).charCodeAt(0))}c=b?.overrides??[];for(d=0;d<c.length-1;){let m=c[d++],n=c[d++];m=Number(m)&255;n="number"===typeof n?n:n.charCodeAt(0);y(a,m,n)}c=z(63,b?.defaultCharByte);b=z(65533,b?.defaultCharUnicode);for(d=0;256>d;d++)a.g[d]||(a.h[d]=b);for(b=0;65536>b;b++)a.j[b]||(a.i[b]=c);return a}
|
|
9
|
-
class A{constructor(a,b,c){this.name=a;a=c??"";c=[];let d=0;for(;d<256-b.length;)c[d]=d++;let m=0;for(;256>d;)c[d++]=b.charCodeAt(m++);for(b=0;b<a.length;)c[a.charCodeAt(b)]=a.charCodeAt(b+1),b+=2;this.g=c}create(a){const {i:b,h:c,g:d,j:m}=w(this,a),n=this.name,p=new B;if(!(a?.nativeDecode??!1)||a?.defaultCharUnicode||a?.overrides?.length||a?.graphicMode)var r=0;else try{(new TextDecoder(this.name)).decode(new Uint8Array([0])),r=!0}catch{r=!1}if(r)p.decode=k=>(new TextDecoder(n)).decode(k);else{const k=
|
|
10
|
-
a?.strictDecode??!1?u:q;if("function"===typeof a?.defaultCharUnicode){const f=a.defaultCharUnicode;p.decode=e=>{const g=e.length,h=new Uint16Array(g);for(let l=0;l<g;l++){const t=e[l],v=c[t];h[l]=d[t]?v:f(t,l)??v}return k(h)}}else p.decode=f=>{const e=f.length,g=new Uint16Array(e);for(let h=0;h<e;h++)g[h]=c[f[h]];return k(g)}}if("function"===typeof a?.defaultCharByte){const k=a.defaultCharByte;p.encode=f=>{const e=new Uint8Array(f.length);for(let g=0;g<f.length;g++){const h=f.charCodeAt(g),l=b[h];
|
|
11
|
-
e[g]=m[h]?l:k(h,g)??l}return e}}else p.encode=k=>{const f=new Uint8Array(k.length);for(let e=0;e<k.length;e++)f[e]=b[k.charCodeAt(e)];return f};return p}}class B{decode(){return""}encode(){return new Uint8Array([0])}}function y(a,b,c){65533===c?a.g[b]=0:(a.h[b]=c,a.i[c]=b,a.g[b]=1,a.j[c]=1)}class x{constructor(a){this.h=new Uint16Array(256);this.i=new Uint8Array(65536);this.g=new Uint8Array(256);this.j=new Uint8Array(65536);for(let b=0;256>b;b++)y(this,b,a[b])}}
|
|
12
|
-
function z(a,b){return"string"===typeof b&&0<b.length?b.charCodeAt(0):a};sbeNS.SBEF=A;})();
|
|
13
|
-
export const { SBEF } = sbeNS;
|
|
14
|
-
|
package/types/aliases.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const aliases: string
|
package/types/iconv-tiny.d.mts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
export class IconvTiny {
|
|
2
|
-
/**
|
|
3
|
-
* @param encodings A map of encodings to support.
|
|
4
|
-
* @param aliases Comma-separated groups, each containing space-separated aliases for the same encoding.
|
|
5
|
-
*/
|
|
6
|
-
constructor(encodings: { [key: string]: EncodingFactory }, aliases?: string);
|
|
7
|
-
decode(buffer: Uint8Array, encoding: string, options?: Options): string;
|
|
8
|
-
encode(content: string, encoding: string, options?: Options): Uint8Array;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
interface Encoding {
|
|
12
|
-
decode(array: Uint8Array): string;
|
|
13
|
-
encode(text: string): Uint8Array;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
interface EncodingFactory {
|
|
17
|
-
create(options?: Options): Encoding;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
type Overrides = Array<number | string>;
|
|
21
|
-
|
|
22
|
-
type DefaultCharFunction = (input: number, index: number) => number | null;
|
|
23
|
-
|
|
24
|
-
type Options = {
|
|
25
|
-
/**
|
|
26
|
-
* Sets the replacement byte used by the "encode" method for unmapped Unicode symbols (default: "?").
|
|
27
|
-
*/
|
|
28
|
-
defaultCharByte?: string | DefaultCharFunction;
|
|
29
|
-
/**
|
|
30
|
-
* Sets the replacement character used by the "decode" method for unmapped bytes (default: "�").
|
|
31
|
-
*/
|
|
32
|
-
defaultCharUnicode?: string | DefaultCharFunction;
|
|
33
|
-
/**
|
|
34
|
-
* Defines custom character mappings (default: null).
|
|
35
|
-
*
|
|
36
|
-
* Format: [<byte_1>, <character_1>, <byte_2>, <character_2>, ...].
|
|
37
|
-
* Example: [0x8f, "⚡"] maps the byte 0x8f to "⚡" and vice versa during encoding.
|
|
38
|
-
* Only symbols with code values no greater than 0xFFFF are allowed.
|
|
39
|
-
*/
|
|
40
|
-
overrides?: Overrides;
|
|
41
|
-
/**
|
|
42
|
-
* Specifies the alternative symbols for the first 32 control bytes.
|
|
43
|
-
*
|
|
44
|
-
* The default is IBM PC memory-mapped symbols: " ☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼"
|
|
45
|
-
* - 0x00 maps to U+0020 " " Space
|
|
46
|
-
* - 0x01 maps to U+263A "☺" White Smiling Face
|
|
47
|
-
* - 0x02 maps to 0x263B "☻" Black Smiling Face
|
|
48
|
-
* ...
|
|
49
|
-
*/
|
|
50
|
-
graphics?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Specifies whether to use the graphic symbols (default: false).
|
|
53
|
-
*/
|
|
54
|
-
graphicMode?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Specifies the behavior of "decode" method:
|
|
57
|
-
*
|
|
58
|
-
* - true: use native TextDecoder.decode if the given encoding supported
|
|
59
|
-
* - false: use "software" decode according to the mapping rules.
|
|
60
|
-
*
|
|
61
|
-
* If defaultCharUnicode, overrides, or graphicMode are set then this option
|
|
62
|
-
* is ignored as the native TextDecoder cannot emulate these features.
|
|
63
|
-
*/
|
|
64
|
-
nativeDecode?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Specifies the behavior of non-native "decode" method
|
|
67
|
-
*
|
|
68
|
-
* - true: use String.fromCharCode to create a string from UTF-16 sequence.
|
|
69
|
-
* - false: use TextDecoder("UTF-16") to create a string from UTF-16 sequence.
|
|
70
|
-
*
|
|
71
|
-
* **Dev Notes**:
|
|
72
|
-
*
|
|
73
|
-
* The non-strict decode works in 99.99% of cases, as long as the mapping
|
|
74
|
-
* produces a correct sequence in UTF-16. There are no single-byte encodings
|
|
75
|
-
* that map bytes to Unicode values greater than 0xFFFF or to the range
|
|
76
|
-
* reserved for surrogate pairs.
|
|
77
|
-
*
|
|
78
|
-
* However, it is possible using `overrides`. In this case TextDecoder will
|
|
79
|
-
* replace invalid UTF-16 codes by �.
|
|
80
|
-
*/
|
|
81
|
-
strictDecode?: boolean;
|
|
82
|
-
};
|