InNpmPackageChecker

Trait InNpmPackageChecker 

Source
pub trait InNpmPackageChecker {
    // Required method
    fn in_npm_package(&self, specifier: &Url) -> bool;

    // Provided methods
    fn in_npm_package_at_dir_path(&self, path: &Path) -> bool { ... }
    fn in_npm_package_at_file_path(&self, path: &Path) -> bool { ... }
}
Expand description

Checks if a provided specifier is in an npm package.

Required Methods§

Source

fn in_npm_package(&self, specifier: &Url) -> bool

Provided Methods§

Implementors§