Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.06 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.06 KB

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();