| Crates.io | cssifier |
| lib.rs | cssifier |
| version | 0.1.3 |
| created_at | 2021-03-08 02:34:16.604426+00 |
| updated_at | 2021-03-21 07:30:21.081285+00 |
| description | Simple crate to convert XPath selectors to CSS selectors |
| homepage | https://gitlab.com/kirbylife/cssifier |
| repository | https://gitlab.com/kirbylife/cssifier |
| max_upload_size | |
| id | 365465 |
| size | 6,636 |
based on cssify but rewrited in Rust (RiiR FTW).
The usage is simple:
cssifier("//a/b")
// Some("a b")
cssifier("//a/b[@id='hello']")
// Some(a b#hello)
cssifier("//a/b[contains(text(), 'hello')]")
// Some(a b:contains(hello))
Contributors are welcome :).