Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

heineiuo/github-pkg-npm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GITHUB-PKG-NPM

A package used to fetch files from github pkg registry

Usage

import GPN from 'github-pkg-npm'

async function main():Promise<void> {
  const gpn = new GPN({
    scope: process.env.GITHUB_SCOPE,
    token: process.env.GITHUB_TOKEN
  })

  const localPath = await gpn.downloadFile('@heineiuo/github-pkg-npm@0.1.0/package.json')

  console.log(localPath) // /tmp/github-pkg-npm/files/github-pkg-npm/0.1.0/package.json
}

main()

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published