@ptkdev/node-module-boilerplate
Version:
Create your npm library with this user friendly boilerplate. Use this respository as template for your new node library/module
48 lines (47 loc) • 1.15 kB
TypeScript
/**
* Node Module (Library) Boilerplate
* =====================
*
* Create your node module (library) with this user friendly boilerplate. Use this respository as template for your new node library/module
*
* @contributors: Patryk Rzucidło [@ptkdev] <support@ptkdev.io> (https://ptk.dev)
*
* @license: MIT License
*
*/
/**
* ModuleInterface
* =====================
*
*/
export interface ModuleInterface {
/**
* Input text
* =====================
* Set text
*
* @interface [ModuleInterface](https://github.com/ptkdev-boilerplate/node-module-boilerplate/blob/main/app/types/module.interfaces.ts)
*
* @param { String } text - input text
*
*/
text: string;
}
/**
* ModuleResponseInterface
* =====================
*
*/
export interface ModuleResponseInterface {
/**
* Output text
* =====================
* Get text
*
* @interface [ModuleResponseInterface](https://github.com/ptkdev-boilerplate/node-module-boilerplate/blob/main/app/types/module.interfaces.ts)
*
* @return {fn} string - run app() for output text
*
*/
app(): string;
}