diff --git a/lib/jsr.json b/lib/jsr.json new file mode 100644 index 0000000000000000000000000000000000000000..ee466519a5759fea16122a7c042094d0d4c34855 --- /dev/null +++ b/lib/jsr.json @@ -0,0 +1,7 @@ +{ + "name": "@clo/lib", + "version": "1.0.0", + "license": "MIT", + "exports": { + } +} diff --git a/lib/license.txt b/lib/license.txt new file mode 100644 index 0000000000000000000000000000000000000000..35e9b4f31f7fa70e102e4c6274e69bc2fdef2a0f --- /dev/null +++ b/lib/license.txt @@ -0,0 +1,21 @@ +Copyright 2025 clover caruso + +Permission 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: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE 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. + + diff --git a/lib/readme.md b/lib/readme.md new file mode 100644 index 0000000000000000000000000000000000000000..886dd37e7eb289bfce107b33e974f6a10d5ab626 --- /dev/null +++ b/lib/readme.md @@ -0,0 +1,32 @@ +# clover's typescript library + +`lib` is a collection of high-quality typescript libraries for things missing in +either browsers or node.js. originally, these were helper functions used to +create my website, , but i started wanting them across +projects. + +all top-level namespaces stand alone as their own projects, and generally do not +depend on each other. no external dependencies == easy to audit. + +the public api is simply all of the code. an overview: + + + + + + + + + +- `string` +- `term` - logging, terminal, interactive widgets +- `term/ansi` - cursor and color constants +- `term/headless` - use `term` and `term/progress` without a pty +- `term/progress` - progress bar, spinner, and tree +- `ts` typescript types and general purpose code + +these libraries are published as is, **without versioning or maintainance +guarantees**. note that on package registries where a semantic version is +required, a major version bump is done on each publication. + +to contribute bug fixes, please send patches to . diff --git a/tsconfig.json b/tsconfig.json index 9a8066fc068b77becbd572b9d9b97eda3caaab89..c9f71e3c43a3d4e0cc51ea020834fc98163ddc2b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,8 +14,8 @@ "skipLibCheck": true, "strict": true, "verbatimModuleSyntax": true, - "target": "es2022", + "target": "es2024", "noUncheckedIndexedAccess": true }, - "include": ["framework/**/*", "src/**/*"] + "include": ["framework/**/*", "src/**/*", "lib/**/*"] }