Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xhyrom/bun-utilities
Bindings for useful functions for bun
https://github.com/xhyrom/bun-utilities
bindings bun package utilities
Last synced: 2 months ago
JSON representation
Bindings for useful functions for bun
- Host: GitHub
- URL: https://github.com/xhyrom/bun-utilities
- Owner: xhyrom
- License: mit
- Created: 2022-07-09T16:30:55.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-25T13:23:37.000Z (over 2 years ago)
- Last Synced: 2024-10-28T21:07:22.676Z (2 months ago)
- Topics: bindings, bun, package, utilities
- Language: Rust
- Homepage:
- Size: 1.85 MB
- Stars: 60
- Watchers: 3
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - xhyrom/bun-utilities - Bindings for useful functions for bun (Rust)
README
# bun-utilities
This package adds some missing utilities using `napi` until they are implemented natively.
> **0.2.0 BREAKING CHANGES**
> Utilities have been split
> To import `exec`, use `import { exec } from 'bun-utilities/spawn'`
> To import `rmdir`, use `import { rmdir } from 'bun-utilities/fs'`
> To import `homedir`, use `import { homedir } from 'bun-utilities/os'`## Current utilities
* `bun-utilities/spawn` - `spawn`, `exec`
* `bun-utilities/fs` - `rmdir`, `copydir`, `copyfile`
* `bun-utilities/os` - `homedir`, `cachedir`, `tempdir`, `hostname`, `platform`, `arch`, `release`, `uptime`, `totalMemory`, `usedMemory`, `availableMemory`, `freeMemory`, `totalSwap`, `usedSwap`> You can use this utilities with bun or node