UNPKG

libyear

Version:

A simple measure of software dependency freshness

7 lines (6 loc) 288 B
import { execa, parseCommandString } from "execa"; export const execute = async (cmd) => // use worker threads if/when supported (https://github.com/sindresorhus/execa/issues/1030) execa `${parseCommandString(cmd)}` .then(({ stdout }) => stdout) .catch((error) => error.stdout);