Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jersou/bash-to-deno
Bash to Deno examples
https://github.com/jersou/bash-to-deno
bash dax deno zx
Last synced: 5 days ago
JSON representation
Bash to Deno examples
- Host: GitHub
- URL: https://github.com/jersou/bash-to-deno
- Owner: jersou
- Created: 2024-01-23T00:09:15.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-10-22T20:24:17.000Z (3 months ago)
- Last Synced: 2024-11-13T11:54:08.539Z (2 months ago)
- Topics: bash, dax, deno, zx
- Language: TypeScript
- Homepage:
- Size: 32.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bash to Deno examples
Bash has a number of peculiarities, particularly when it comes to error
handling, and long Bash scripts can become complicated to maintain for teams
with little experience of the language.Deno seems a good alternative, with Typescript for typing and a modern API for
accessing local resources (File System, I/O, Sub Process, ...).This examples [bash-to-deno.ts](./bash-to-deno.ts) use
[Dax](https://github.com/dsherret/dax) library :> Cross platform shell tools for Deno inspired by zx.
From https://github.com/google/zx :
> Bash is great, but when it comes to writing more complex scripts, many people
> prefer a more convenient programming language. JavaScript is a perfect choice,
> but the Node.js standard library requires additional hassle before using. The
> zx package provides useful wrappers around child_process, escapes arguments
> and gives sensible defaults.→ [see the examples in bash-to-deno.ts](./bash-to-deno.ts)
→ [see the example with basic CLI in cli-lite-example.ts](./cli-lite-example.ts)
## Official Doc
- Dax : https://github.com/dsherret/dax
- Deno API : https://deno.land/api
- Deno Standard Library : https://jsr.io/@std
- Deno Manual : https://docs.deno.com/runtime/manual
- CliteParser : https://github.com/jersou/clite-parser