tests with express and nginx
This commit is contained in:
9
tests/tests_hugo/node_modules/toidentifier/HISTORY.md
generated
vendored
Normal file
9
tests/tests_hugo/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
tests/tests_hugo/node_modules/toidentifier/LICENSE
generated
vendored
Normal file
21
tests/tests_hugo/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.
|
||||
61
tests/tests_hugo/node_modules/toidentifier/README.md
generated
vendored
Normal file
61
tests/tests_hugo/node_modules/toidentifier/README.md
generated
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
# toidentifier
|
||||
|
||||
[![NPM Version][npm-image]][npm-url]
|
||||
[![NPM Downloads][downloads-image]][downloads-url]
|
||||
[![Build Status][github-actions-ci-image]][github-actions-ci-url]
|
||||
[![Test Coverage][codecov-image]][codecov-url]
|
||||
|
||||
> Convert a string of words to a JavaScript identifier
|
||||
|
||||
## Install
|
||||
|
||||
This is a [Node.js](https://nodejs.org/en/) module available through the
|
||||
[npm registry](https://www.npmjs.com/). Installation is done using the
|
||||
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
|
||||
|
||||
```bash
|
||||
$ npm install toidentifier
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
var toIdentifier = require('toidentifier')
|
||||
|
||||
console.log(toIdentifier('Bad Request'))
|
||||
// => "BadRequest"
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
This CommonJS module exports a single default function: `toIdentifier`.
|
||||
|
||||
### toIdentifier(string)
|
||||
|
||||
Given a string as the argument, it will be transformed according to
|
||||
the following rules and the new string will be returned:
|
||||
|
||||
1. Split into words separated by space characters (`0x20`).
|
||||
2. Upper case the first character of each word.
|
||||
3. Join the words together with no separator.
|
||||
4. Remove all non-word (`[0-9a-z_]`) characters.
|
||||
|
||||
## License
|
||||
|
||||
[MIT](LICENSE)
|
||||
|
||||
[codecov-image]: https://img.shields.io/codecov/c/github/component/toidentifier.svg
|
||||
[codecov-url]: https://codecov.io/gh/component/toidentifier
|
||||
[downloads-image]: https://img.shields.io/npm/dm/toidentifier.svg
|
||||
[downloads-url]: https://npmjs.org/package/toidentifier
|
||||
[github-actions-ci-image]: https://img.shields.io/github/workflow/status/component/toidentifier/ci/master?label=ci
|
||||
[github-actions-ci-url]: https://github.com/component/toidentifier?query=workflow%3Aci
|
||||
[npm-image]: https://img.shields.io/npm/v/toidentifier.svg
|
||||
[npm-url]: https://npmjs.org/package/toidentifier
|
||||
|
||||
|
||||
##
|
||||
|
||||
[npm]: https://www.npmjs.com/
|
||||
|
||||
[yarn]: https://yarnpkg.com/
|
||||
32
tests/tests_hugo/node_modules/toidentifier/index.js
generated
vendored
Normal file
32
tests/tests_hugo/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, '')
|
||||
}
|
||||
122
tests/tests_hugo/node_modules/toidentifier/package.json
generated
vendored
Normal file
122
tests/tests_hugo/node_modules/toidentifier/package.json
generated
vendored
Normal file
@@ -0,0 +1,122 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"toidentifier@1.0.1",
|
||||
"/home/lenovo/Desktop/42/transcendence/tests/tests_hugo/node_modules/http-errors"
|
||||
]
|
||||
],
|
||||
"_from": "toidentifier@1.0.1",
|
||||
"_hasShrinkwrap": false,
|
||||
"_id": "toidentifier@1.0.1",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/toidentifier",
|
||||
"_nodeVersion": "16.7.0",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "s3://npm-registry-packages",
|
||||
"tmp": "tmp/toidentifier_1.0.1_1636928349293_0.3428615485437094"
|
||||
},
|
||||
"_npmUser": {
|
||||
"email": "doug@somethingdoug.com",
|
||||
"name": "dougwilson"
|
||||
},
|
||||
"_npmVersion": "7.20.3",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "toidentifier",
|
||||
"raw": "toidentifier@1.0.1",
|
||||
"rawSpec": "1.0.1",
|
||||
"scope": null,
|
||||
"spec": "1.0.1",
|
||||
"type": "version"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/http-errors"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
||||
"_shasum": "3be34321a88a820ed1bd80dfaa33e479fbb8dd35",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "toidentifier@1.0.1",
|
||||
"_where": "/home/lenovo/Desktop/42/transcendence/tests/tests_hugo/node_modules/http-errors",
|
||||
"author": {
|
||||
"email": "doug@somethingdoug.com",
|
||||
"name": "Douglas Christopher Wilson"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/component/toidentifier/issues"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Douglas Christopher Wilson",
|
||||
"email": "doug@somethingdoug.com"
|
||||
},
|
||||
{
|
||||
"name": "Nick Baugh",
|
||||
"email": "niftylettuce@gmail.com",
|
||||
"url": "http://niftylettuce.com/"
|
||||
}
|
||||
],
|
||||
"dependencies": {},
|
||||
"description": "Convert a string of words to a JavaScript identifier",
|
||||
"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"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"fileCount": 5,
|
||||
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
|
||||
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2+EKCRA9TVsSAnZWagAABkgP/07O+fXm6BSS5cLKq9x8\nth8+fBLY9B1JdIPUcjmGmJEYOx9hNUSs18+UTFtMDxR4lYcL9aS0NJ/5oDRF\n0k4g05VoZftdjbknI3KksHIO2ZWVBvia1hr050Aj0OZt73EThaq2jwauyv/o\nW43gKnzZDzlPqp5nW+K1ZyyZAO6x18VgPfCHaVfIdQVpXlewkMtGdMwgcIyH\nf32U7FezcqErukxl+I5JloPk9zMfnPBm1aa8Bx/YF6Y08ctsHihlUcGyYQBd\ny29fDkqwd+NCJueWxBCN6uE1IENeZSmCCB0AZqlruNZiV/hZQA4riqy/G5hH\nMpjgodOjZTknH6vdq1j6/DYaATlWz6AzelKOTRXRHpsrFbZ/2W3LaHm5KuCD\nT2hPpRLPu2mCf1JBOdmi4KDC5KaqSRMp3g+9xbwdIGxuIczK1XZzfwNUfRPE\nQpxtaLUw0PpJxWkSWE2rkMhfJN4U8XMIT5Ramn9FgAPjw9XaBF67t8FQNk8m\nuPiv8315TAfFh90Fy1fmd3aXx7fuCGx2XsT2u78uZCBlsQ0WEzyGqczhcqF0\nfQ0Oc2hOeVDQgvo06uUklk/4GQe9czuDfA9aFZEnItgQU72iFA10gmyP7TZj\ncwW7N0bQw1Ko+8y3ISRQSOcSXBbYNu16inAoco4s2V0D5JvV13+kIFAhdvo+\nH2aa\r\n=RxN1\r\n-----END PGP SIGNATURE-----\r\n",
|
||||
"shasum": "3be34321a88a820ed1bd80dfaa33e479fbb8dd35",
|
||||
"signatures": [
|
||||
{
|
||||
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
|
||||
"sig": "MEQCIE4DF65GEHAFzBdSMxDw1aIpaLFVT9vueS5Mc1ScnWR7AiA+cRv4ND36Q8EITeR79WydYYcihBtwhEJ2MsP+8ySyYg=="
|
||||
}
|
||||
],
|
||||
"tarball": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
||||
"unpackedSize": 4685
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.6"
|
||||
},
|
||||
"gitHead": "a885785de8dc9eb3f5dba0c38de034ffdb68223f",
|
||||
"homepage": "https://github.com/component/toidentifier#readme",
|
||||
"license": "MIT",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "niftylettuce",
|
||||
"email": "niftylettuce@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "dougwilson",
|
||||
"email": "doug@somethingdoug.com"
|
||||
},
|
||||
{
|
||||
"name": "jongleberry",
|
||||
"email": "jonathanrichardong@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "toidentifier",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/component/toidentifier.git"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"test": "mocha --reporter spec --bail --check-leaks test/",
|
||||
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
||||
"test-cov": "nyc --reporter=html --reporter=text npm test",
|
||||
"version": "node scripts/version-history.js && git add HISTORY.md"
|
||||
},
|
||||
"version": "1.0.1"
|
||||
}
|
||||
Reference in New Issue
Block a user