📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-06-29 20:59:23
📂
/ (Root)
/
home
/
orkouolp
/
nodevenv
/
node_js
/
testing.orkobd
/
14
/
lib
/
node_modules
/
toidentifier
📍 /home/orkouolp/nodevenv/node_js/testing.orkobd/14/lib/node_modules/toidentifier
🔄 Refresh
✏️
Editing: index.js
Writable
/*! * toidentifier * Copyright(c) 2016 Douglas Christopher Wilson * MIT Licensed */ 'use strict' /** * Module exports. * @public */ module.exports = toIdentifier /** * Trasform the given string into a JavaScript identifier * * @param {string} str * @returns {string} * @public */ function toIdentifier (str) { return str .split(' ') .map(function (token) { return token.slice(0, 1).toUpperCase() + token.slice(1) }) .join('') .replace(/[^ _0-9a-z]/gi, '') }
💾 Save Changes
❌ Cancel