No description
- HTML 35.7%
- TypeScript 34.4%
- Nix 29.9%
| .gitignore | ||
| bun.lock | ||
| flake.lock | ||
| flake.nix | ||
| index.html | ||
| main.ts | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
pb
render source files as syntax-highlighted HTML and upload to S3 or a remote host
usage
pb -f|--file <file> [-l|--lang <language>] [--s3 | -d|--dest user@host:/path]
run from flake without installing:
nix run git+https://git.rcast.dev/rc/pb.git -- -f main.ts
Examples:
nix run . -- --file main.ts
nix run . -- -f main.ts --lang typescript
nix run . -- -f main.ts --s3
nix run . -- -f main.ts -d user@example.com:/var/www/html/
by default, pb detects the Shiki language from the file's final extension. For example, example.test.ts is detected as ts. Pass -l or --lang to override the language.
build
build compiled Bun binaries for all supported platforms:
nix build
development
run the following commands in the devShell (nix develop)
install dependencies:
bun install
run locally:
bun run main.ts -f main.ts
typecheck:
bun run typecheck