Skip to main content
Home

@ryor/ryor@1.0.0-beta-33

yanked
ryor/ryor
This package works with Node.js, Deno, BunIt is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
Published
a year ago (1.0.0-beta-33)
import { type CommandsScriptPromise, runCommandsScript } from './commands.ts' import { runner } from './runner.ts' /** * A template tag function for a commands script * * @param {TemplateStringsArray} strings - The string literals in the template * @param {unknown[]} values - The interpolated values in the template * @returns {ScriptPromise} */ export const r$ = (strings: TemplateStringsArray, ...values: unknown[]): CommandsScriptPromise => runCommandsScript(String.raw(strings, ...values)) /** * A template tag function for a task runner * * @param {TemplateStringsArray} strings - The string literals in the template * @param {unknown[]} values - The interpolated values in the template * @returns {Promise<void>} */ export const ryor = (strings: TemplateStringsArray, ...values: unknown[]): Promise<void> => runner(String.raw(strings, ...values))