Sha256: 8a3a84ae9d7560c12dc6fb6dd8a2d446e829cb2e48a4086bf228b261e9c19f49
Contents?: true
Size: 220 Bytes
Versions: 11
Compression:
Stored size: 220 Bytes
Contents
'use strict'; module.exports = function (str, sep) { if (typeof str !== 'string') { throw new TypeError('Expected a string'); } return str.replace(/([a-z\d])([A-Z])/g, '$1' + (sep || '_') + '$2').toLowerCase(); };
Version data entries
11 entries across 8 versions & 3 rubygems