Wit

object Wit

JVM WIT parsing and normalization facade.

parse for a WIT string is self-contained. Operations backed by wasm-tools, including normalization and path/byte component parsing, require the component-model-tooling artifact on the JVM runtime classpath.

Functions

Link copied to clipboard
fun encodePackage(witFileOrDirectory: Path): ByteArray
Link copied to clipboard
fun json(path: Path): String
fun json(input: Source): String
Link copied to clipboard
fun normalize(path: Path): String
fun normalize(input: Source): String
Link copied to clipboard
fun parse(componentOrWitBytes: ByteArray): WitPackage
fun parse(componentOrWitPath: Path): WitPackage
Link copied to clipboard