@ptkdev/node-cli-boilerplate
Version:
Create node cli with this user friendly boilerplate. Use this respository as template for your new npm command line interface project
28 lines (27 loc) • 799 B
TypeScript
/**
* Node Module
* =====================
*
* Show hello world text
*
* @contributors: Patryk Rzucidło [@ptkdev] <support@ptkdev.io> (https://ptk.dev)
*
* @license: MIT License
*
*/
import type { ModuleInterface, ModuleResponseInterface } from "../types/module.interfaces";
/**
* Hello World
* =====================
*
* Print hello-world, run with: npx @ptkdev/node-cli-boilerplate
*
* @interface [ModuleInterface ModuleResponseInterface](https://github.com/ptkdev-boilerplate/node-cli-boilerplate/blob/main/app/types/module.interfaces.ts)
*
* @param {string} {text} - input string
*
* @return {Promise<ModuleResponseInterface>} (async) app() function that return string
*
*/
declare const m: ({ text }: ModuleInterface) => Promise<ModuleResponseInterface>;
export default m;