🎥 Make videos programmatically with React
export const envSupportsFsRecursive = () => {
const nodeVersion = process.version.replace('v', '').split('.');
if (process.platform === 'darwin' || process.platform === 'win32') {
return true;
}
if (parseInt(nodeVersion[0], 10) > 19) {
return true;
}
if (
parseInt(nodeVersion[0], 10) === 19 &&
parseInt(nodeVersion[1], 10) >= 1
) {
return true;
}
return false;
};