Skip to content

Commit 0ff326c

Browse files
authored
Revise preset descriptions in README
Updated descriptions for presets and added a reference to documentation.
1 parent 8e02105 commit 0ff326c

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,25 @@ fn({ a: 1, b: 3 }) // 7
2424

2525
## Presets
2626

27-
**Subscript**: common expressions
28-
29-
`a.b a[b] a(b)` `+ - * / %` `< > <= >= == !=` `! && ||` `~ & | ^` `<< >>` `++ --` `= += -= *= /=`
27+
**Subscript**: common expressions:
3028

3129
```js
3230
import subscript from 'subscript'
3331

3432
subscript('a.b + c * 2')({ a: { b: 1 }, c: 3 }) // 7
3533
```
3634

37-
**Justin**: JSON + expressions + templates + arrows
35+
**Justin**: JSON + expressions + templates + arrows:
3836

39-
`'str' "str"` `0x 0b` `=== !==` `** >>>` `?? ?.` `? :` `=>` `...` `[] {}` `` ` `` `// /**/` `true false null`
4037
```js
4138
import justin from 'subscript/justin.js'
4239

4340
justin('{ x: a?.b ?? 0, y: [1, ...rest] }')({ a: null, rest: [2, 3] })
4441
// { x: 0, y: [1, 2, 3] }
4542
```
4643

47-
**Jessie**: JSON + expressions + statements, functions
44+
**Jessie**: JSON + expressions + statements, functions (JS subset):
4845

49-
`if else` `for while do` `let const var` `function return` `class` `throw try catch` `switch` `import export` `/regex/`
5046
```js
5147
import jessie from 'subscript/jessie.js'
5248

@@ -60,7 +56,7 @@ let fn = jessie(`
6056
fn({}) // 120
6157
```
6258

63-
59+
See [docs](./docs.md#presets) for full description.
6460

6561
## Extension
6662

0 commit comments

Comments
 (0)