Sha256: 853fe3276c06810ca40b332b1e22cc345fbd5de69dc8fc5fe28d058a0a0bd0d8
Contents?: true
Size: 278 Bytes
Versions: 23
Compression:
Stored size: 278 Bytes
Contents
'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;
Version data entries
23 entries across 23 versions & 1 rubygems