diff options
| author | 2020-05-22 09:50:33 +0200 | |
|---|---|---|
| committer | 2020-05-22 09:50:33 +0200 | |
| commit | a17c71edcb9f76c9f571dc6ad4d10151bc7de038 (patch) | |
| tree | 4dc639339a55c091a259e20dbcc56eacbfeab217 /README.md | |
| parent | Extend netrepl protocol and server. (diff) | |
Add formatting to the README
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -2,6 +2,28 @@ Various Janet utility modules. + +## Formatting + +Provides a way to format Janet code strings and files. + +### Strings + +``` +(import spork/fmt) + +(fmt/format "(def a\n 3 )") => @"(def a\n 3)\n" + +``` + +### Files + +``` +(import spork/fmt) + +(fmt/format-file "main.janet") +``` + ## Message Protocol Provide a symmetric way to send and receive seqential messages over a networked stream. |
