FoseFx/twitch-chatbot-boilerplate-core

View on GitHub
src/core/util.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import * as fs from 'fs';

/** @internal */
export function ensureDirExists(dir: fs.PathLike): void {
  if (!fs.existsSync(dir)) {
    fs.mkdirSync(dir);
  }
}