PHP 7.4.33
Preview: index.js Size: 504 B
/var/www/DMGMultiEventApiHandler.bitkit.dk/httpdocs/node_modules/toidentifier/index.js
/*!
 * 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, '')
}

Directory Contents

Dirs: 0 × Files: 5
Name Size Perms Modified Actions
128 B lrw-r--r-- 2024-09-19 04:54:51
Edit Download
504 B lrw-r--r-- 2024-09-19 04:54:51
Edit Download
1.08 KB lrw-r--r-- 2024-09-19 04:54:51
Edit Download
1.12 KB lrw-r--r-- 2024-09-19 04:54:51
Edit Download
1.76 KB lrw-r--r-- 2024-09-19 04:54:51
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).