Node library template package with full ESM support. All features available as npm scripts: Jest testing. Rollup build. Rename package - affecting all relevant files. Readme generator. Markdown and HTML API-documentation. Npm publish and version bumping. Github repository create, delete and commit. Jsdoc block comment description triggers package description updates. Package keyword-extraction from block comments in source code.
npm install @bemoje/node-lib-template
npm install --save @bemoje/node-lib-template
npm install --save-dev @bemoje/node-lib-template
import nodeLibTemplate from '@bemoje/node-lib-template'
nodeLibTemplate()
//=> undefined
Uses Jest to test module functionality. Run tests to get coverage details.
npm run test
Node library template package with full ESM support. All features available as npm scripts: Jest testing. Rollup build. Rename package - affecting all relevant files. Readme generator. Markdown and HTML API-documentation. Npm publish and version bumping. Github repository create, delete and commit. Jsdoc block comment description triggers package description updates. Package keyword-extraction from block comments in source code.
-
num
number number -
name
string name -
callback
theCallback An addable instance is passed to the callback.
void
Callback type definition.
Type: Function
addable
Addable The string
void
Extends Number
A class that extends the native Number-class and
-
num
number The number -
name
(optional, default'myAddable'
)
Adds 'n'
n
number The number to add