Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/demostf/edit
Demo editing tools with js bindings
https://github.com/demostf/edit
Last synced: about 1 month ago
JSON representation
Demo editing tools with js bindings
- Host: GitHub
- URL: https://github.com/demostf/edit
- Owner: demostf
- License: apache-2.0
- Created: 2022-10-23T14:58:23.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-24T21:24:44.000Z (about 1 year ago)
- Last Synced: 2024-08-02T13:21:54.261Z (5 months ago)
- Language: Rust
- Size: 763 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE_APACHE
Awesome Lists containing this project
- awesome-tf2-devs - demostf/edit - rust(+wasm) - edit tf2 demos, still WIP (Table of contents / Demos related)
README
# Demo editor
## Rust api
```rust
use edit::{edit, EditOptions, TickRange};fn main() {
let options = EditOptions {
unlock_pov: true,
cut: Some(TickRange {
from: 1000.into(),
to: 2000.into(),
}),
..EditOptions::default()
};
let input = fs::read("in.demo").unwrap();
let output = edit(&input, options);
fs::write("out.dem", output).unwrap();
}
```