# outerspace-rs
[](https://crates.io/crates/outerspace)
[](https://crates.io/crates/outerspace)
[](https://docs.rs/outerspace)
This is the Rust version of the [outerspace JavaScript package](https://www.npmjs.com/package/outerspace).
Methods for prefixing and suffixing the non-whitespace characters in a string.
# Examples
```rust
let prefixed = outerspace::prefix_non_whitespace("\n\nHello hello\n\n", "> ");
assert_eq!(prefixed, "\n\n> Hello hello\n\n");
```
```rust
let suffixed = outerspace::suffix_non_whitespace("\n\nHello hello\n\n", "!");
assert_eq!(suffixed, "\n\nHello hello!\n\n");
```
```rust
let wrapped = outerspace::wrap_non_whitespace("\n\nHello hello\n\n", "**", "**");
assert_eq!(wrapped, "\n\n**Hello hello**\n\n");
```