1 unstable release
0.1.0 | Jan 24, 2025 |
---|
#20 in #author
112 downloads per month
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