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 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