A GitHub template repo for node modules
This template is designed for creating Node.js library modules - packages that provide reusable functionality to other projects.
When to use this template:
- Building npm libraries and utilities
- Creating shared code modules
- Developing packages without CLI or server components
Related templates:
- node-cli-template - For command-line tools and CLI applications
- node-app-template - For web servers, REST APIs, and long-running services
For detailed coding guidelines and GitHub Copilot instructions, see .github/copilot-instructions.md
import { something } from '@voxpelli/node-module-template';
// Use that somethingTakes a value (input), does something configured by the config (configParam) and returns the processed value asyncly(output)
something(input, [options]) => Promise<true>input–string– the input of the methodoptions–SomethingOptions– optional options
maxAge–number– the maximum age of latest release to includeminDownloadsLastMonth = 400–number– the minimum amount of downloads needed to be returnedskipPkg–boolean– when set skips resolvingpackage.json
A Promise that resolves to true
example– used by this one to do X and Y
example– is similar in this way