UNPKG

nhb-toolbox

Version:

A versatile collection of smart, efficient, and reusable utility functions, classes and types for everyday development needs.

15 lines (14 loc) 522 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.greetingPlugin = void 0; const greet_1 = require("../greet"); const greetingPlugin = ($Chronos) => { $Chronos.prototype.getGreeting = function (configs) { const currentTime = this.formatStrict('HH:mm'); return (0, greet_1.getGreeting)({ currentTime, ...configs }); }; $Chronos.prototype.greet = function (configs) { return this.getGreeting(configs); }; }; exports.greetingPlugin = greetingPlugin;