//! Path helpers for resource discovery: `resolvePath` against a home directory, `canonicalizePath`, BOM stripping.
//! Node's `path` itself is [`jsrt::path`].
use Path;
/// `resolvePath` from utils/paths.ts (`~` names `home`), trimming the input first when `trim` is set.
/// `canonicalizePath`: realpath, or the input when it cannot be resolved.