pub struct NodeJsParser;Expand description
Parses Node.js dependencies from package.json
Implementations§
Source§impl NodeJsParser
impl NodeJsParser
Sourcepub fn parse(&self, root: &Path) -> Result<Vec<Dependency>, ResearchError>
pub fn parse(&self, root: &Path) -> Result<Vec<Dependency>, ResearchError>
Parses dependencies from package.json
Sourcepub fn has_manifest(&self, root: &Path) -> bool
pub fn has_manifest(&self, root: &Path) -> bool
Checks if package.json exists
Trait Implementations§
Source§impl Debug for NodeJsParser
impl Debug for NodeJsParser
Auto Trait Implementations§
impl Freeze for NodeJsParser
impl RefUnwindSafe for NodeJsParser
impl Send for NodeJsParser
impl Sync for NodeJsParser
impl Unpin for NodeJsParser
impl UnwindSafe for NodeJsParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more