Skip to content

danielpza/node-typescript-package

Repository files navigation

Node Typescript Package Template

Node.js CI

Description


Installing this Template

Using tsc for compiling

# 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

Using pkgroll

# 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

Setting an npm token for publishing the package to npm

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


Installation

npm install https://github.com/danielpza/node-typescript-package.git

Usage

import { fn } from "node-typescript-package";

fn();

About

Node Typescript Package Template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published