CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-zx

A tool for writing better scripts by bridging JavaScript and shell commands with cross-platform wrappers around child_process

Overview
Eval results
Files

cli.mddocs/

CLI Functions

Command line interface specific functionality for the zx CLI tool.

Capabilities

Markdown Processing

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-specific Types

/**
 * 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

docs

cli.md

file-system.md

index.md

network-operations.md

process-management.md

shell-execution.md

user-interaction.md

utilities.md

tile.json