file_editor/lib.rs
1//! **file-editor** − clean, chain-friendly text-file editing.
2//!
3//! ```
4//! use file_editor::Editor;
5//! # fn main() -> std::io::Result<()> {
6//! Editor::create("demo.txt")? // new file
7//! .append("world\n")
8//! .prepend("hello ")
9//! .insert_after("hello", " rustaceans!\n", false)
10//! .save()?;
11//! # Ok(()) }
12//! ```
13//!
14//! See `Editor` for the full API.
15
16mod editor;
17pub mod utils;
18
19pub use editor::Editor;