An open API service indexing awesome lists of open source software.

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.

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.