MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / parse

Method parse

src/packagedcode/npm.py:611–615  ·  view source on GitHub ↗
(cls, location, package_only=False)

Source from the content-addressed store, hash-verified

609
610 @classmethod
611 def parse(cls, location, package_only=False):
612 with io.open(location, encoding='utf-8') as loc:
613 json_data = json.load(loc)
614
615 yield cls._parse(json_data, package_only)
616
617
618class BaseNpmLockHandler(BaseNpmHandler):

Callers

nothing calls this directly

Calls 3

openMethod · 0.45
loadMethod · 0.45
_parseMethod · 0.45

Tested by

no test coverage detected