/
var
/
www
/
greso.tech
/
server
/
nsm
/
node_modules
/
toidentifier
/
/var/www/greso.tech/server/nsm/node_modules/toidentifier
mkdir
upload
Name
Size
Mode
Actions
HISTORY.md
128
0644
edit
dl
rm
index.js
504
0644
edit
dl
rm
LICENSE
1108
0644
edit
dl
rm
package.json
1142
0644
edit
dl
rm
README.md
1803
0644
edit
dl
rm
Edit:
/var/www/greso.tech/server/nsm/node_modules/toidentifier/index.js
(504B)
/*! * 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
cmd:
run