Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Boilerplate to kickstart creating an npm package using TypeScript

License

NotificationsYou must be signed in to change notification settings

ryansonshine/typescript-npm-package-template

Repository files navigation

Template to kickstart creating a Node.js module using TypeScript and VSCode

Inspired bynode-module-boilerplate

Features

Getting started

Set up your repository

Click the "Use this template" button.

Alternatively, create a new directory and then run:

curl -fsSL https://github.com/ryansonshine/typescript-npm-package-template/archive/main.tar.gz| tar -xz --strip-components=1

ReplaceFULL_NAME,GITHUB_USER, andREPO_NAME in the script below with your own details to personalize your new package:

FULL_NAME="John Smith"GITHUB_USER="johnsmith"REPO_NAME="my-cool-package"sed -i.mybak"s/\([\/\"]\)(ryansonshine)/$GITHUB_USER/g; s/typescript-npm-package-template\|my-package-name/$REPO_NAME/g; s/Ryan Sonshine/$FULL_NAME/g" package.json package-lock.json README.mdrm*.mybak

Add NPM Token

Add your npm token to your GitHub repository secrets asNPM_TOKEN.

Add Codecov integration

Enable the Codecov GitHub Apphere.

Remove everything from here and above


my-package-name

npm packageBuild StatusDownloadsIssuesCode CoverageCommitizen FriendlySemantic Release

My awesome module

Install

npm install my-package-name

Usage

import{myPackage}from'my-package-name';myPackage('hello');//=> 'hello from my package'

API

myPackage(input, options?)

input

Type:string

Lorem ipsum.

options

Type:object

postfix

Type:stringDefault:rainbows

Lorem ipsum.

About

Boilerplate to kickstart creating an npm package using TypeScript

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp