(self, location: Path)
return NpmDeps(
            packages.get("dependencies", {}), packages.get("devDependencies", {})
        )
Returns an inventory of all top-level dependencies (not necessarily installed)

        :return: The dependencies, with versions
Returns an inventory of all top-level dependencies (not necessarily installed)
Returns an inventory of all top - level dependencies ( not necessarily installed )
def _dependencies(self, location: Path) -> NpmDeps:
        """
        Returns an inventory of all top-level dependencies (not necessarily installed)

        :return: The dependencies, with versions
        """
        package_json_path = location / "package.json"
        with package_json_path.open() as stream:
            packages = json.load(stream)

        return NpmDeps(
            packages.get("dependencies", {}), packages.get("devDependencies", {})
        )
def _dependencies ( self , location : Path ) -> NpmDeps : package_json_path = location / "package.json" with package_json_path . open ( ) as stream : packages = json . load ( stream ) return NpmDeps ( packages . get ( "dependencies" , { } ) , packages . get ( "devDependencies" , { } ) )