Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public async isSupported(): Promise {
const isNodeOrElectron = typeof process === 'object';
if (!isNodeOrElectron) {
const message = `Node.js File System Module is not available on your platform.`;
throw new UnsupportedError(message);
}
}