/
usr
/
lib
/
node_modules
/
pm2
/
node_modules
/
toidentifier
/
/usr/lib/node_modules/pm2/node_modules/toidentifier
mkdir
upload
Name
Size
Mode
Actions
index.js
490
0644
edit
dl
rm
LICENSE
1108
0644
edit
dl
rm
package.json
2179
0644
edit
dl
rm
README.md
1718
0644
edit
dl
rm
Edit:
/usr/lib/node_modules/pm2/node_modules/toidentifier/index.js
(490B)
/*! * toidentifier * Copyright(c) 2016 Douglas Christopher Wilson * MIT Licensed */ /** * 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
cmd:
run