https://github.com/xlboy/type-toolkit
A TypeScript type utility library developed in the TypeZen language, aims for - "Super rich features and an excellent user experience"
https://github.com/xlboy/type-toolkit
type-tools type-utils typescript typezen
Last synced: 8 months ago
JSON representation
A TypeScript type utility library developed in the TypeZen language, aims for - "Super rich features and an excellent user experience"
- Host: GitHub
- URL: https://github.com/xlboy/type-toolkit
- Owner: xlboy
- License: mit
- Created: 2023-04-04T14:05:12.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-16T05:44:21.000Z (almost 3 years ago)
- Last Synced: 2025-09-28T22:24:36.695Z (8 months ago)
- Topics: type-tools, type-utils, typescript, typezen
- Language: TypeScript
- Homepage: https://type-toolkit-docs.vercel.app
- Size: 726 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# type-toolkit
English | [įŽäŊ䏿](./README.zh.md)
A TypeScript type utility library developed in the [TypeZen](https://www.github.com/xlboy/type-zen) language, aims for - **"Super rich features and an excellent user experience"**
## Features
- Written in [TypeZen](https://www.github.com/xlboy/type-zen), with types that are easy to understand, and it is maintainable and extensible
- Excellent user experience:
- Documents - **JSDoc, [Online API](https://type-toolkit-docs.vercel.app/)**
- Use cases are provided for reference
- Abundant APIs that are used like **Vanilla JS**, `lodash` (coming soon)
- High unit test coverage to ensure the accuracy of each API
## Installation
```bash
npm install type-toolkit -D
```
## Usege
```typescript
import type tt from 'type-toolkit';
type T0 = tt.String.Repeat<'a', 3>; // 'aaa'
type T1 = tt.String.Split<'a-b-c', '-'>; // ['a', 'b', 'c']
type T2 = tt.String.Substring<'0123456789', 3, 5>; // '34'
type T3 = tt.String.Trim<' abc '>; // 'abc'
type T4 = tt.Number.Range<0, 10>; // [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
```
## Documentation
- [API Reference](https://type-toolkit-docs.vercel.app/)
## Motivation
- Practice [TypeZen](https://www.github.com/xlboy/type-zen)
- Fill the gap in the community with the positioning of **"Super rich features & an excellent experience"**
## Thanks
- [type-fest](https://github.com/sindresorhus/type-fest)
- [ts-toolbelt](https://github.com/millsp/ts-toolbelt)
- [type-challenges](https://github.com/type-challenges/type-challenges)
- ...
Without these excellent projects, this project may not have been born, and I am very grateful to the developers who have silently contributed to these projects. đ
And thank you to all the friends who have been there for me~ đ
## License
MIT License Š 2023-PRESENT [xlboy](https://github.com/xlboy)