My personal template repo for node modules
MIT License
A GitHub template repo for node modules
import { something } from '@voxpelli/node-module-template';
// Use that something
Takes 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 optionsmaxAge
– number
– the maximum age of latest release to includeminDownloadsLastMonth = 400
– number
– the minimum amount of downloads needed to be returnedskipPkg
– boolean
– when set skips resolving package.json
A Promise
that resolves to true
example
– used by this one to do X and Yexample
– is similar in this way