Expand description
This crate provides shared utilities that is not related to any core compilation flow or data structures. If you are a plugin author and look for internal helpers, [farmfe_toolkit] crate should be your first choice.
Re-exports§
pub use nanoid;
Modules§
Constants§
Functions§
- diff_
paths - Construct a relative path from a provided base directory path to the provided path.
- file_
url_ to_ path - is_
skip_ action_ by_ comment - parse_
query - parse
?a=btoHashMap { a: b },?atoHashMap { a: "" } - relative
- get platform independent relative path for example: from = “/desktop/farm/projects”, to = “/desktop/farm/documents/report.txt” the result will be “../documents/report.txt”
- stringify_
query - stringify
Vec<(a, b)>to?a=b. for example:vec![("a", "b")]to?a=bvec![("a", "")]to?a - transform_
string_ to_ static_ str