Description
# with giget https://github.com/unjs/giget
npx giget gh:danielpza/node-typescript-package#master
# with degit https://github.com/Rich-Harris/degit
npx degit danielpza/node-typescript-package
# with giget https://github.com/unjs/giget
npx giget gh:danielpza/node-typescript-package#pkgroll
# with degit https://github.com/Rich-Harris/degit
npx degit danielpza/node-typescript-package#pkgroll
Create a new token at https://www.npmjs.com/settings/{yourusername}/tokens/granular-access-tokens/new
Then set the NPM_TOKEN secret in github with the generated token. gh secret set NPM_TOKEN
npm install https://github.com/danielpza/node-typescript-package.git
import { fn } from "node-typescript-package";
fn();