A collection of utilities for TypeScript and JavaScript.
This repository is work in progress.
It is tested against Bun, Deno, and Node.js runtimes. Published on jsr.io (@frytg).
@frytg/check-required-env- Check a required environment variable@frytg/crypto- Crypto utilities (hash, hmac, etc.)@frytg/dates- Date utilities around Luxon@frytg/logger- Pre-configuredWinston logging wrapper
Planned for this utility package:
hashes- sha256, sha512, etc.
Other tools that I regularly use and don't feel the need to optimize or re-create in this utility package:
axios- Promise based HTTP client for the browser and node.jshono- small, simple, and ultrafast web framework built on Web Standardsundici- performant HTTP/1.1 client for Node.js@upstash/redisfor HTTP redis andredisfor TCPtailwindcss- CSS framework for rapid UI development@turf/turffor anything geospatial
Use deno fmt, deno lint and biome lint to check the code.
deno task checkSee Writing documentation for details about writing JSDoc.
This uses @cross/test and sinon to run the tests.
deno task testLocally check if everything is ok:
deno publish --dry-runThen once everything is pushed or merged on main, run the GitHub actions workflow to publish the packages to JSR
(see publishing packages for more details).
Created by @frytg / frytg.digital
Unlicense - also see unlicense.org