Skip to content

🎥 Make videos programmatically with React

265 B
Raw Blame
export const shouldSubscribeToSourceFile = (source: string): boolean => {
	const normalized = source.replaceAll('\\', '/');

	if (normalized === '..' || normalized.startsWith('../')) {
		return false;
	}

	return !normalized.split('/').includes('node_modules');
};