Skip to content

voxpelli/node-module-template

Repository files navigation

Node Module Template

A GitHub template repo for node modules

neostandard javascript style Module type: ESM Types in JS Follow @voxpelli@mastodon.social

About This Template

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:

For detailed coding guidelines and GitHub Copilot instructions, see .github/copilot-instructions.md

Usage

import { something } from '@voxpelli/node-module-template';

// Use that something

API

something()

Takes a value (input), does something configured by the config (configParam) and returns the processed value asyncly(output)

Syntax

something(input, [options]) => Promise<true>

Arguments

  • inputstring – the input of the method
  • optionsSomethingOptions – optional options

SomethingOptions

  • maxAgenumber – the maximum age of latest release to include
  • minDownloadsLastMonth = 400number – the minimum amount of downloads needed to be returned
  • skipPkgboolean – when set skips resolving package.json

Returns

A Promise that resolves to true

Used by

  • example – used by this one to do X and Y

Similar modules

  • example – is similar in this way

See also

About

My personal template repo for node modules

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages