Module

x/yargs/build/lib/typings/common-types.d.ts>PlatformShim

yargs the modern, pirate-themed successor to optimist.
Go to Latest
interface PlatformShim
import { type PlatformShim } from "https://dotland.deno.dev/x/yargs@v17.7.1-deno/build/lib/typings/common-types.d.ts";

Properties

assert: { notStrictEqual: (
expected: any,
observed: any,
message?: string | Error,
) => void; strictEqual: (
expected: any,
observed: any,
message?: string | Error,
) => void; }
findUp: (startDir: string, fn: (dir: string[], names: string[]) => string | undefined) => string
getCallerFile: () => string
getEnv: (key: string) => string | undefined
getProcessArgvBin: () => string
inspect: (obj: object) => string
mainFilename: string
requireDirectory: Function
stringWidth: (str: string) => number
cliui: Function
Parser: Parser
path: { basename: (p1: string, p2?: string) => string; extname: (path: string) => string; dirname: (path: string) => string; relative: (p1: string, p2: string) => string; resolve: (p1: string, p2: string) => string; }
process: { argv: () => string[]; cwd: () => string; emitWarning: (warning: string | Error, type?: string) => void; execPath: () => string; exit: (code: number) => void; nextTick: (cb: Function) => void; stdColumns: number | null; }
readFileSync: (path: string, encoding: string) => string
require: RequireType
y18n: Y18N