Initial
This commit is contained in:
9
resources/app/node_modules/toidentifier/HISTORY.md
generated
vendored
Normal file
9
resources/app/node_modules/toidentifier/HISTORY.md
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
1.0.1 / 2021-11-14
|
||||
==================
|
||||
|
||||
* pref: enable strict mode
|
||||
|
||||
1.0.0 / 2018-07-09
|
||||
==================
|
||||
|
||||
* Initial release
|
||||
21
resources/app/node_modules/toidentifier/LICENSE
generated
vendored
Normal file
21
resources/app/node_modules/toidentifier/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2016 Douglas Christopher Wilson <doug@somethingdoug.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
32
resources/app/node_modules/toidentifier/index.js
generated
vendored
Normal file
32
resources/app/node_modules/toidentifier/index.js
generated
vendored
Normal 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, '')
|
||||
}
|
||||
27
resources/app/node_modules/toidentifier/package.json
generated
vendored
Normal file
27
resources/app/node_modules/toidentifier/package.json
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "toidentifier",
|
||||
"description": "Convert a string of words to a JavaScript identifier",
|
||||
"version": "1.0.1",
|
||||
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>",
|
||||
"repository": "component/toidentifier",
|
||||
"devDependencies": {
|
||||
"eslint": "7.32.0",
|
||||
"eslint-config-standard": "14.1.1",
|
||||
"eslint-plugin-import": "2.25.3",
|
||||
"eslint-plugin-markdown": "2.2.1",
|
||||
"eslint-plugin-node": "11.1.0",
|
||||
"eslint-plugin-promise": "4.3.1",
|
||||
"eslint-plugin-standard": "4.1.0",
|
||||
"mocha": "9.1.3",
|
||||
"nyc": "15.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.6"
|
||||
},
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"HISTORY.md",
|
||||
"LICENSE",
|
||||
"index.js"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user