BOMBYASCHER/TXT-combiner

View on GitHub
src/empty.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { statSync } from 'node:fs';
import buildpath from './buildpath.js';

export default (file) => statSync(buildpath(file)).size === 0;