# Demo editor ## Command line editor You can download the latest release from the [releases page](https://codeberg.org/demostf/edit/releases). ### Building ```bash cd wasm cargo b --release --features cli ``` binary can be found at `target/release/edit` ### Usage ```bash edit [options] [output-path.dem] ``` See `edit --help` for the available options. ## Rust api ```rust use edit::{edit, EditOptions, TickRange}; fn main() { let options = EditOptions::builder() .unlock_pov(true) .remove_invalid_deletes(self.remove_invalid_deletes) .cut(TickRange { from: from.into(), to: to.into(), }).build(); let input = fs::read("in.demo").unwrap(); let output = edit(&input, options); fs::write("out.dem", output).unwrap(); } ``` ## WASM bindings ### Building ```bash cd wasm wasm-pack build -s demostf -t web ``` Build package can be found at `pkg`. ## Contribution guidelines LLM created contributions are not welcome in this project.