1 2 3 4 5
use std::path::Path; pub fn is_in_node_modules(id: &Path) -> bool { id.components().any(|comp| comp.as_os_str() == "node_modules") }