Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d-exclaimation/common-ts
Zero-dependency TypeScript utilties for Node.js, Deno, Web and anything that powered by V8
https://github.com/d-exclaimation/common-ts
functional-programming pattern-matching pipe typescript union v8 zod
Last synced: 9 days ago
JSON representation
Zero-dependency TypeScript utilties for Node.js, Deno, Web and anything that powered by V8
- Host: GitHub
- URL: https://github.com/d-exclaimation/common-ts
- Owner: d-exclaimation
- License: mit
- Created: 2023-01-22T08:19:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-03T11:36:38.000Z (2 months ago)
- Last Synced: 2024-10-03T13:39:15.205Z (about 1 month ago)
- Topics: functional-programming, pattern-matching, pipe, typescript, union, v8, zod
- Language: TypeScript
- Homepage:
- Size: 58.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
@d-exclaimation/common
Zero-dependency TypeScript utilties for Node.js, Deno, Web and anything that powered by V8.
## Getting started
### Install
```sh
npm i @d-exclaimation/common
```## Modules
- `common`, General utilities (type-safe keys and entries, random integer, weigted random, etc.)
- `pipe`, Pipe operator utilities (type safe functions pipe, function to higher order, etc.)
- `tailwind`, [Tailwind CSS](https://tailwindcss.com) types utilities (text color, bg color, etc.)
- `union`, Union related types and utilities (distriminated union, pattern matching, etc.)
- `v8`, V8 engine related utilities (sleep, task queue, async streams, etc.)
- `zod`, [zod](https://github.com/colinhacks/zod) related utilties (extending schema, etc.)## Feedback
If you have any feedback, feel free open an issue.