smartopen/ts/index.ts
2022-03-18 02:15:17 +01:00

13 lines
246 B
TypeScript

import open from 'open';
export let openUrl = async (urlArg: string) => {
if (!(process.env.CI === 'true')) {
const childProcess = await open(urlArg, {
wait: false,
});
return childProcess;
} else {
return null;
}
};