Skip to content

refactor: runCommand #41

@Tohrusky

Description

@Tohrusky

vs --info 和 ffmpeg 拆成

import { promisify } from 'node:util'
import { exec as _exec } from 'node:child_process'
const exec = promisify(_exec)

const { stdout, stderr } = await exec('your-command --args', { encoding: 'utf8' })
console.log(stdout, stderr)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions