https://github.com/frytg/utility
A collection of utilities for TypeScript and JavaScript.
https://github.com/frytg/utility
bun deno jsr logger nodejs
Last synced: 10 months ago
JSON representation
A collection of utilities for TypeScript and JavaScript.
- Host: GitHub
- URL: https://github.com/frytg/utility
- Owner: frytg
- License: unlicense
- Created: 2024-11-16T20:23:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-22T10:36:09.000Z (12 months ago)
- Last Synced: 2025-01-22T11:19:18.527Z (12 months ago)
- Topics: bun, deno, jsr, logger, nodejs
- Language: TypeScript
- Homepage: https://jsr.io/@frytg
- Size: 132 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Utility packages
[](https://jsr.io/@frytg)
[](https://github.com/frytg/utility/actions/workflows/test.yml)
[](https://biomejs.dev)
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`)](https://jsr.io/@frytg).
## Tools
- [`@frytg/check-required-env`](./check-required-env/README.md) - Check a required environment variable
- [`@frytg/crypto`](./crypto/README.md) - Crypto utilities (hash, hmac, etc.)
- [`@frytg/dates`](./dates/README.md) - Date utilities around Luxon
- [`@frytg/logger`](./logger/README.md) - Pre-configuredWinston logging wrapper
## More Tooling
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`](https://github.com/axios/axios) - _Promise based HTTP client for the browser and node.js_
- [`hono`](https://jsr.io/@hono/hono) - _small, simple, and ultrafast web framework built on Web Standards_
- [`undici`](https://github.com/nodejs/undici) - _performant HTTP/1.1 client for Node.js_
- [`@upstash/redis`](https://github.com/upstash/redis-js) for HTTP redis and [`redis`](https://github.com/redis/node-redis) for TCP
- [`tailwindcss`](https://tailwindcss.com/docs/installation) - _CSS framework for rapid UI development_
- [`@turf/turf`](https://github.com/Turfjs/turf) _for anything geospatial_
## Lint
Use `deno fmt`, `deno lint` and `biome lint` to check the code.
```bash
deno task check
```
See [_Writing documentation_](https://jsr.io/docs/writing-docs) for details about writing JSDoc.
## Testing
This uses [`@cross/test`](https://jsr.io/@cross/test) and [`sinon`](https://sinonjs.org) to run the tests.
```bash
deno task test
```
## Publish
Locally check if everything is ok:
```bash
deno publish --dry-run
```
Then once everything is pushed or merged on `main`, run the GitHub actions workflow to publish the packages to JSR
(see [_publishing packages_](https://jsr.io/docs/publishing-packages) for more details).
## Author
Created by [@frytg](https://github.com/frytg) / [frytg.digital](https://www.frytg.digital)
## License
[Unlicense](./LICENSE) - also see [unlicense.org](https://unlicense.org)