Skip to content

Typescript and Javascript general purpose utilities packed into a single library

License

Notifications You must be signed in to change notification settings

iolave/ts-utils

Repository files navigation

Utils: General purpose utilities packed into a single library

Install this library

# 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.

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

About

Typescript and Javascript general purpose utilities packed into a single library

Topics

Resources

License

Stars

Watchers

Forks