UNPKG

@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

25 lines 889 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); /** * Run * ===================== * * Start module * * @contributors: Patryk Rzucidło [@ptkdev] <support@ptkdev.io> (https://ptk.dev) * * @license: MIT License * */ const module_1 = __importDefault(require("../functions/module")); const translate_1 = __importDefault(require("../translations/translate")); const logger_1 = __importDefault(require("../utils/logger")); (async () => { const label = (0, translate_1.default)("hello", { name: "World" }); // This show "Hello World"! Is a literal template string from en.json const { app } = await (0, module_1.default)({ text: label }); logger_1.default.info(app()); })(); //# sourceMappingURL=run.js.map