Registry / utility / newline-converter

newline-converter

JSON →
library0.3.0rscratesunverified

Newline byte converter library.

# Cargo.toml [dependencies] newline-converter = "0.3.0"
INSTALL
IMPORT
SIG · NEWLINE-CONVERTER
N
newline-converter
utilityrustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

convert
use newline_converter::convert;

Converts newline characters in a byte slice to the specified format.

use newline_converter::convert; fn main() { let input = b"hello\nworld"; let output = convert(input, b"\r\n"); println!("{:?}", String::from_utf8_lossy(&output)); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
newline-converter — cargo add newline-converter · libregistry