resolve-npm-dependency-graph.registry-loader

0.1.1 • Public • Published

resolve-npm-dependency-graph.registry-loader

pure npm client loader for resolve-npm-dependency-graph

Usage

const Resolver = require('resolve-npm-dependency-graph')
const RegistryLoader = require('resolve-npm-dependency-graph.registry-loader')
 
const loader = RegistryLoader.createLoader()
const client = new Resolver.Client({ packageMetadataLoader: loader })
 
// load the dependency graph of fastify
;(async () => {
  const npmPkg = await client.load('fastify@latest')
})()

/resolve-npm-dependency-graph.registry-loader/

    Package Sidebar

    Install

    npm i resolve-npm-dependency-graph.registry-loader

    Weekly Downloads

    1

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    5.47 kB

    Total Files

    6

    Last publish

    Collaborators

    • knksmith57