Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iolave/ts-utils

Typescript and Javascript general purpose utilities packed into a single library
https://github.com/iolave/ts-utils

javscript-library jsr typescript-library utility-library

Last synced: 9 days ago
JSON representation

Typescript and Javascript general purpose utilities packed into a single library

Awesome Lists containing this project

README

        

# Utils: General purpose utilities packed into a single library

## Install this library
```bash
# npm (one of the below, depending on your package manager)
npx jsr add @iolave/utils
yarn dlx jsr add @iolave/utils
pnpm dlx jsr add @iolave/utils
bunx jsr add @iolave/utils
# deno
deno add @iolave/utils
```

## Library documentation
Documentation can be found at [jsr:@iolave/utils](https://jsr.io/@iolave/utils/doc).

## Features
- Golang-like error handling utilities: `@iolave/utils/results`.
- Functions related utilities (like making promises and sync functions safe): `@iolave/utils/functions`.
- Streams utilities (like a asynchornous version of the `fs.WriteStream.write` method): `@iolave/utils/streams`.
- File related utilities: `@iolave/utils/files`.

## Development
*Install dependencies:*
```
npm install
```

*Run tests:*
```
npm coverage # or npm test
```