https://github.com/kessler/repl
a personal lib for building repls
https://github.com/kessler/repl
Last synced: 27 days ago
JSON representation
a personal lib for building repls
- Host: GitHub
- URL: https://github.com/kessler/repl
- Owner: kessler
- Created: 2020-07-08T23:02:54.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-03T10:22:41.000Z (about 2 years ago)
- Last Synced: 2025-04-04T03:31:53.501Z (28 days ago)
- Language: JavaScript
- Homepage:
- Size: 316 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @kessler/repl (wip)
a personal lib for building repls
## Install
```
npm i @kessler/repl
```## usage
index.js
```js
const REPL = require('@kessler/repl')const commands = [
{
name: ['foo', 'f'],
impl: ({ cli, session, params }) => cli.print('hi')
}
]REPL.start(commands)
```## scripts
```
node index script.cli
```script.cli
```
foo;
foo;
foo;
```