Skip to content

Commit

Permalink
README: add http code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
vindarel committed Jun 12, 2024
1 parent fb93b26 commit 3ab5d60
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ STATUS: ~~highly~~ WIP, the API WILL change, but it is usable.

I am dogfooding it in public and private projects.


## What is this ?

CIEL is a ready-to-use collection of libraries.
Expand All @@ -34,6 +35,24 @@ Questions, doubts? See the [FAQ](docs/FAQ.md).

NEW: we now have a Docker file.

```lisp
#!/usr/bin/env ciel
(-> "https://fakestoreapi.com/products?limit=5"
http:get
json:read-json
(elt 0)
(access "title"))
```

```bash
$ chmodx +x getproduct.lisp
$ time ./getproduct.lisp
"Fjallraven - Foldsack No…ckpack, Fits 15 Laptops"
./getproduct.lisp 0.10s user 0.02s system 24% cpu 0.466 total
```


## Rationale

One of our goals is to make Common Lisp useful out of the box for
Expand Down

0 comments on commit 3ab5d60

Please sign in to comment.