UNPKG

el-beeswarm

Version:

<div style="display: flex; padding: 1rem; flex-direction: column; align-items: center; justify-content: center; height: 100vh; text-align: center; display: flex;

14 lines (11 loc) 279 B
'use strict'; function camelCase(str) { return str.replace(/[\w-]+/g, (s) => /^-?[a-z]+(?:-[a-z]+)+$/.test(s) ? s .replace(/^-(ms|moz|khtml|epub|(\w+-?)*webkit)(?=-)/i, '$1') .replace(/-\w/g, (s) => s[1].toUpperCase()) : s, ); } module.exports = camelCase;