Function
Static Public Summary | ||
public |
async createTemp(path: string): Promise<string, Error> Create a temporary directory for files for the API. |
|
public |
Execute a command from within the root folder. |
|
public |
|
Static Public
public async createTemp(path: string): Promise<string, Error> source
import {createTemp} from 'pop-api/src/utils.js'
Create a temporary directory for files for the API.
Params:
Name | Type | Attribute | Description |
path | string |
|
The path to the directory to create. |
public executeCommand(cmd: string, args: Array<string>): Promise<string, Error> source
import {executeCommand} from 'pop-api/src/utils.js'
Execute a command from within the root folder.
public padStart(targetLength: number, padString: string): string source
import padStart from 'pop-api/src/middleware/internal/padStart.js'