UNPKG

express-legacy-csp

Version:

Downgrade content-security-policy version and fidelity to support the requesting browser

4 lines (3 loc) 113 B
module.exports = function toCamelCase(str) { return str.replace(/-([a-z])/g, ($0, ch) => ch.toUpperCase()); };