@unicode-utils/core 0.12.0-beta.15

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025-PRESENT Lucas Nørgård
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # @luxass/unicode-utils
2
+
3
+ [![npm version][npm-version-src]][npm-version-href]
4
+ [![npm downloads][npm-downloads-src]][npm-downloads-href]
5
+
6
+ Utilities for working with Unicode.
7
+
8
+ > [!IMPORTANT]
9
+ > This package is still in a very early stage of development and many things are still missing. If you have any suggestions or ideas, please open an issue or a pull request.
10
+
11
+ ## Installation
12
+
13
+ ```bash
14
+ npm install @luxass/unicode-utils
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ```ts
20
+ import { getDataFileComments, UNICODE_VERSIONS, UNICODE_VERSIONS_WITH_UCD } from "@luxass/unicode-utils";
21
+
22
+ console.log(UNICODE_VERSIONS); // List of Unicode Versions
23
+ console.log(UNICODE_VERSIONS_WITH_UCD); // List of Unicode Versions with UCD
24
+
25
+ const dataFileComments = getDataFileComments("UnicodeData.txt");
26
+ console.log(dataFileComments); // Comments from UnicodeData.txt
27
+ ```
28
+
29
+ ## 📄 License
30
+
31
+ Published under [MIT License](./LICENSE).
32
+
33
+ > [!NOTE]
34
+ > The files inside `test/fixtures/data-files` & `ucd-files` is not part of the MIT license, and instead licensed under the [Unicode License](https://unicode.org/copyright.html#License). The files are used for testing purposes only and are not part of the package.
35
+
36
+ <!-- Badges -->
37
+
38
+ [npm-version-src]: https://img.shields.io/npm/v/@luxass/unicode-utils?style=flat&colorA=18181B&colorB=4169E1
39
+ [npm-version-href]: https://npmjs.com/package/@luxass/unicode-utils
40
+ [npm-downloads-src]: https://img.shields.io/npm/dm/@luxass/unicode-utils?style=flat&colorA=18181B&colorB=4169E1
41
+ [npm-downloads-href]: https://npmjs.com/package/@luxass/unicode-utils
@@ -0,0 +1,13 @@
1
+ //#region rolldown:runtime
2
+ var __defProp = Object.defineProperty;
3
+ var __export = (all) => {
4
+ let target = {};
5
+ for (var name in all) __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true
8
+ });
9
+ return target;
10
+ };
11
+
12
+ //#endregion
13
+ export { __export as t };
@@ -0,0 +1,2 @@
1
+ import { UNICODE_DRAFT_VERSION, UNICODE_STABLE_VERSION, UNICODE_VERSION_METADATA, UnicodeVersionMetadata } from "@unicode-utils/metadata";
2
+ export { UnicodeVersionMetadata as i, UNICODE_STABLE_VERSION as n, UNICODE_VERSION_METADATA as r, UNICODE_DRAFT_VERSION as t };
@@ -0,0 +1,3 @@
1
+ import { UNICODE_DRAFT_VERSION, UNICODE_STABLE_VERSION, UNICODE_VERSION_METADATA } from "@unicode-utils/metadata";
2
+
3
+ export { UNICODE_STABLE_VERSION as n, UNICODE_VERSION_METADATA as r, UNICODE_DRAFT_VERSION as t };
@@ -0,0 +1,2 @@
1
+ import { i as UnicodeVersionMetadata, n as UNICODE_STABLE_VERSION, r as UNICODE_VERSION_METADATA, t as UNICODE_DRAFT_VERSION } from "./constants-BclbCHPC.js";
2
+ export { UNICODE_DRAFT_VERSION, UNICODE_STABLE_VERSION, UNICODE_VERSION_METADATA, UnicodeVersionMetadata };
@@ -0,0 +1,3 @@
1
+ import { n as UNICODE_STABLE_VERSION, r as UNICODE_VERSION_METADATA, t as UNICODE_DRAFT_VERSION } from "./constants-DygWVxzp.js";
2
+
3
+ export { UNICODE_DRAFT_VERSION, UNICODE_STABLE_VERSION, UNICODE_VERSION_METADATA };