import __fs from 'fs-extra'; /** * @name ensureFileSync * @namespace node.fs * @type Function * @platform node * @status stable * * Ensure that the passed file exists. If not, will be created... (async) * * @param {String} filePath The file to ensure that it exists... * * @todo tests * * @snippet __ensureFileSync($1) * * @example js * import { __ensureFileSync } from '@lotsof/sugar/fs'; * __ensureFileSync('my/cool/file.jpg'); * * @see https://github.com/jprichardson/node-fs-extra * @since 1.0.0 * @author Olivier Bossel (https://lotsof.dev) */ export default function __ensureFileSync(filePath: string): void { __fs.ensureFileSync(filePath); }