pnpm/resolving/git-resolver
Zoltan Kochan 00dea18c60
chore(deps): update
2022-12-30 22:05:59 +02:00
..
__mocks__ refactor: group projects in different subdirectories (#5659) 2022-11-20 01:35:22 +02:00
src refactor: group projects in different subdirectories (#5659) 2022-11-20 01:35:22 +02:00
test refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00
CHANGELOG.md chore(release): 7.19.0 2022-12-21 12:55:30 +02:00
README.md refactor: group projects in different subdirectories (#5659) 2022-11-20 01:35:22 +02:00
example.js refactor: group projects in different subdirectories (#5659) 2022-11-20 01:35:22 +02:00
jest.config.js refactor: group projects in different subdirectories (#5659) 2022-11-20 01:35:22 +02:00
package.json chore(deps): update 2022-12-30 22:05:59 +02:00
tsconfig.json refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00
tsconfig.lint.json refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00

README.md

@pnpm/git-resolver

Resolver for git-hosted packages

npm version

Installation

pnpm add @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