Files
api/app/core/utils/misc/clean-stdout.ts
2020-11-11 16:13:30 +10:30

17 lines
303 B
TypeScript

/*!
* Copyright 2019-2020 Lime Technology Inc. All rights reserved.
* Written by: Alexis Tyler
*/
interface Options {
/** Standard output from execa. */
stdout: string;
}
/**
* Execa helper to trim stdout.
*/
export const cleanStdout = (options: Options) => {
return options.stdout.trim();
};