added expressjs server instead of python one

This commit is contained in:
janis
2022-10-30 15:02:25 +01:00
parent ab47525e7b
commit f5b682598b
623 changed files with 88586 additions and 64 deletions

32
nodeserver/node_modules/toidentifier/index.js generated vendored Normal file
View File

@@ -0,0 +1,32 @@
/*!
* 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, '')
}