1 unstable release

0.1.0 Jan 24, 2025

#20 in #author

Download history 84/week @ 2025-01-19 24/week @ 2025-01-26 4/week @ 2025-02-02

112 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.2–3MB
~54K SLoC