UNPKG

shell-mirror

Version:

Access your Mac shell from any device securely. Perfect for mobile coding with Claude Code CLI, Gemini CLI, and any shell tool.

27 lines (21 loc) 515 B
'use strict'; const { MESSAGE } = require('triple-beam'); class Printf { constructor(templateFn) { this.template = templateFn; } transform(info) { info[MESSAGE] = this.template(info); return info; } } /* * function printf (templateFn) * Returns a new instance of the printf Format that creates an * intermediate prototype to store the template string-based formatter * function. */ module.exports = opts => new Printf(opts); module.exports.Printf = module.exports.Format = Printf;