Skip to content

My personal template repo for node modules

License

Notifications You must be signed in to change notification settings

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

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

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published