This project started with the idea of "creating a type-safe library that fits my preferences."
It focuses on minimizing unnecessary dependencies and achieving high test coverage while
leveraging TypeScript's type system to design safe and intuitive libraries.
For detailed information about each library, please refer to the respective documentation.
- @imhonglu/json-schema
A JSON Schema 2020-12 Draft-compliant implementation, validated with the JSON-Schema-test-suite.
Supports schema-based static type inference, allowing you to define safe data structures declaratively. - @imhonglu/format
A strongly typed string formatting library compliant with RFC standards.
Provides an API similar to the native JSON API for intuitive usability. - @imhonglu/pattern-builder
A RegExp builder that simplifies complex regular expressions.
Improves readability and makes maintenance easier. - @imhonglu/toolkit
A collection of commonly used utility functions and types, designed to enhance development efficiency.
Helps reduce repetitive code and maintain consistent patterns in TypeScript projects. - @imhonglu/type-guard
A type guard library inspired by Jest matchers, providing a chainable API.
Uses Proxy-based implementation to minimize overhead while ensuring strong type safety. - @imhonglu/type-object
A type-safe wrapper for Object APIs that closely aligns with native behavior.
Enhances safety when working withObject.keys
,entries
,fromEntries
,hasOwn
, and similar APIs in TypeScript.