https://github.com/mainrs/hackscript
A tool for writing scripts in JS with sensible default frameworks.
https://github.com/mainrs/hackscript
cli zx
Last synced: 3 months ago
JSON representation
A tool for writing scripts in JS with sensible default frameworks.
- Host: GitHub
- URL: https://github.com/mainrs/hackscript
- Owner: mainrs
- License: mit
- Created: 2021-05-11T13:03:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-12T11:20:21.000Z (over 4 years ago)
- Last Synced: 2025-01-22T09:14:01.974Z (11 months ago)
- Topics: cli, zx
- Language: JavaScript
- Homepage:
- Size: 931 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# hackerscript
> A tool for writing scripts in JS with sensible default frameworks.
Inspired by [zx](https://github.com/google/zx), `hackscript` is a version that is specifically tailored towards me and my needs. An example script per API functionality has been added under the `tests` folder.
## Differences
### Features kept
- API:
- `chalk` package
- `os` package
### Features removed
- Remote file execution
- API:
- `$` with its template functionality and all its children
- `fs` package
- `question` function
- `fetch` function
- `cd` function
### Features added
- API:
- `arg` for simple argument parsing (uses [vercel/arg](https://github.com/vercel/arg))
- `open` for opening files, urls and the like with the OS' default program (uses [sindresorhus/open](https://github.com/sindresorhus/open))
- `prompt` for creating interactive prompts (uses [enquirer/enquirer](https://github.com/enquirer/enquirer))
#### License
Licensed under the MIT license.