0.0.34 • Published 1 year ago

@coli.codes/ast-formatter v0.0.34

Weekly downloads
-
License
Apache 2.0
Repository
-
Last release
1 year ago

Coli AST Formatter.

This is a package to format a coli tree with a extra token injected. this does not outputs a string, but a coli tree.

Use case.

this package is initially designed for integration with @code-ui, to enable using very same coli syntax to build a code-ui. the problem was, coli core does not contain any raw token information such as { or <. which means if you define a object-literal expression, it will contain only the data that is included inside { and } based on its output. But @code-ui requires full syntax with all raw tokens, still using the same coli object. to pollyfill this gap witout stringfy & re-parsing, this package injects the raw token as a ast, so that the same format can be used universally.

0.0.34

1 year ago

0.0.30

3 years ago

0.0.31

3 years ago

0.0.32

3 years ago

0.0.29

3 years ago

0.0.28

3 years ago

0.0.27

3 years ago

0.0.26

3 years ago

0.0.25

3 years ago

0.0.24

3 years ago

0.0.23

3 years ago

0.0.18

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago