UNPKG

ab-test-middleware

Version:

An express middleware that manages multiple distributions for A/B/N testing purposes.

12 lines (10 loc) 222 B
const fs = require('fs'); const fileExists = (filePath) => { try { fs.accessSync(filePath, fs.constants.F_OK); return true; } catch (e) { return false; } } module.exports = fileExists;