1 unstable release

0.1.0 Jan 24, 2025

#22 in #author

Download history 104/week @ 2025-01-21 4/week @ 2025-01-28 6/week @ 2025-02-04

114 downloads per month

MIT license

7KB
120 lines

Parsing the metadata of the Tampermonkey script

let mut us = UserScript::try_from(
r#"// ==UserScript==
// @author       You
// ==/UserScript=="#,
)
.unwrap();

us.set("author", "Me");

assert_eq!(us.get("author"), Some(&"Me".to_string()))

Dependencies

~2–3MB
~54K SLoC