A tool for writing better scripts by bridging JavaScript and shell commands with cross-platform wrappers around child_process
Command line interface specific functionality for the zx CLI tool.
Transform markdown content for use in scripts.
/**
* Transform markdown content with zx-specific processing
* @param content - Markdown content to transform
* @returns Transformed content
*/
function transformMarkdown(content: string): string;Usage:
import { transformMarkdown } from "zx/cli";
const markdownContent = `
# My Script
\`\`\`javascript
await $\`echo "Hello World"\`;
\`\`\`
`;
const transformed = transformMarkdown(markdownContent);
console.log(transformed);/**
* CLI argument parsing options specific to zx command line tool
*/
interface CliArgv extends minimist.ParsedArgs {
version?: boolean;
help?: boolean;
quiet?: boolean;
verbose?: boolean;
install?: boolean;
repl?: boolean;
experimental?: boolean;
shell?: string;
prefix?: string;
postfix?: string;
eval?: string;
cwd?: string;
ext?: string;
registry?: string;
env?: string;
}Install with Tessl CLI
npx tessl i tessl/npm-zx