Sha256: 3eaa8b46b58b66b225719f6eafefffe92b233246f636c329dce7fd6acf052ea9
Contents?: true
Size: 337 Bytes
Versions: 46
Compression:
Stored size: 337 Bytes
Contents
"use strict"; const toLowerCase = Function.call.bind("".toLowerCase); module.exports = function formatBuilderName(type) { // FunctionExpression -> functionExpression // JSXIdentifier -> jsxIdentifier // V8IntrinsicIdentifier -> v8IntrinsicIdentifier return type.replace(/^([A-Z](?=[a-z0-9])|[A-Z]+(?=[A-Z]))/, toLowerCase); };
Version data entries
46 entries across 46 versions & 7 rubygems