https://github.com/duplojs/server-utils
@duplojs/server-utils is typed as a runtime-independent server helper. It is part of the DuploJS ecosystem.
https://github.com/duplojs/server-utils
bun command-line-tool cross-platform deno duplojs either env-parser filesystem monad node typescript
Last synced: about 1 month ago
JSON representation
@duplojs/server-utils is typed as a runtime-independent server helper. It is part of the DuploJS ecosystem.
- Host: GitHub
- URL: https://github.com/duplojs/server-utils
- Owner: duplojs
- Created: 2026-01-08T14:11:44.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-04-30T14:13:21.000Z (about 1 month ago)
- Last Synced: 2026-04-30T16:11:28.736Z (about 1 month ago)
- Topics: bun, command-line-tool, cross-platform, deno, duplojs, either, env-parser, filesystem, monad, node, typescript
- Language: TypeScript
- Homepage: http://server-utils.duplojs.dev/
- Size: 2.53 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# @duplojs/server-utils
[](https://www.npmjs.com/package/@duplojs/server-utils)
Typed, runtime-agnostic server helpers for file systems, CLI commands, and common system operations in the DuploJS ecosystem.
## Documentation
- https://server-utils.duplojs.dev
## Why
- Consistent APIs across Node.js, Deno, and Bun
- Explicit result types (Ok/Success/Left) for clear error handling
- Small, focused utilities you can import individually
- CLI command builder with typed options and subjects
- `environmentVariable`: dotenv + dotenv-expand in one typed API, with schema validation
## Install
```bash
npm install @duplojs/server-utils@0 @duplojs/utils@1
```
## What’s inside
- File system utilities: read/write/append, directories, links, copy/move/remove
- CLI command utilities: `exec`, `create`, and option builders
- Environment variable utilities