Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

@pnpm/git-resolver

1.0.1 • Public • Published

@pnpm/git-resolver

Resolver for git-hosted packages

npm version Build Status

Install

Install it via npm.

npm install @pnpm/git-resolver

Usage

'use strict'
const createResolveFromNpm = require('@pnpm/git-resolver').default
 
const resolveFromNpm = createResolveFromNpm({})
 
resolveFromNpm({
  pref: 'kevva/is-negative#16fd36fe96106175d02d066171c44e2ff83bc055'
})
.then(resolveResult => console.log(JSON.stringify(resolveResult, null, 2)))
//> {
//    "id": "github.com/kevva/is-negative/16fd36fe96106175d02d066171c44e2ff83bc055",
//    "normalizedPref": "github:kevva/is-negative#16fd36fe96106175d02d066171c44e2ff83bc055",
//    "resolution": {
//      "tarball": "https://codeload.github.com/kevva/is-negative/tar.gz/16fd36fe96106175d02d066171c44e2ff83bc055"
//    },
//    "resolvedVia": "git-repository"
//  }

License

MIT © Zoltan Kochan

install

npm i @pnpm/git-resolver

Downloadsweekly downloads

188

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
Report a vulnerability