Skip to content

npmRun

Runs a command using npm checking if the command is overridden in the package.json.

Import:

import { npmRun } from 'obsidian-dev-utils/script-utils/npm-run';

Signature:

function npmRun(command: string): Promise<void>

Parameters:

ParameterTypeDescription
commandstringThe command to run.

Returns: Promise<void>