Comparing version 0.0.12 to 0.0.13
{ | ||
"name": "liyad-cli", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "CLI and REPL for Liyad (Lisp yet another DSL interpreter).", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
"dependencies": { | ||
"liyad": "^0.0.21" | ||
"liyad": "^0.0.22" | ||
}, | ||
@@ -39,0 +39,0 @@ "repository": { |
@@ -82,2 +82,3 @@ # Liyad CLI | ||
$ cd liyad-cli | ||
$ npm ci | ||
$ pkg . --output liyad | ||
@@ -133,3 +134,3 @@ $ ./liyad --version | ||
* `$require(id [, profile])` | ||
* `($require id [ profile ])` | ||
* Load lisp code from other file. | ||
@@ -140,7 +141,7 @@ * returns: Exported functions and variables. | ||
* default value is selected by CLI option `-p` or `--profile`. | ||
* `$node-require(id)` | ||
* `($node-require id)` | ||
* Load JavaScript code from other file. | ||
* returns: Exported functions and variables. | ||
* `id`: Load from relative path if `id` starts with `./` or `../`. Otherwise load from local or global `node_modules`. | ||
* `$render(jsxElement, callback)` | ||
* `($render jsxElement callback)` | ||
* Render jsxElement by `LSX-bootstrap.render()` and pass rendering result string or error to `callback`. | ||
@@ -153,2 +154,8 @@ * returns: `undefined` | ||
## Additional operator on REPL | ||
* `($pause(id [ cond ])` | ||
* Pause execution and start debugger | ||
* returns: `undefined` | ||
* `cond`: if it present, pause if condition is `true`. | ||
---- | ||
@@ -155,0 +162,0 @@ |
30778
162
+ Addedliyad@0.0.22(transitive)
- Removedliyad@0.0.21(transitive)
Updatedliyad@^0.0.22