For almost everything, just replace
kennanhunter
with your username,@kennanhunter/npm-package-template
with your npm name (line 20 + 21 of readme.md), andnpm-package-template
with your repo nameFor github actions add
- NPM_TOKEN: found in access tokens on your npm settings
- CODECOV_TOKEN: found in code coverage
Always remember grug's timeless advice on testing
You also will want to change the
funding
key in package.json and the ko-fi key in FUNDING.yml to your financial details
# npm
npm install @kennanhunter/npm-package-template
# Yarn
yarn add @kennanhunter/npm-package-template
import { add } from "@kennanhunter/npm-package-template";
const res = add(5, 7);
console.log(res); // 13
git clone https://github.com/KennanHunter/npm-package-template.git
cd npm-package-template
yarn
yarn test
# Benchmarking (builds in background)
yarn benchmark
# Only needed for final publishing
yarn build
There exists recommended extensions and basic settings in the .vscode folder.