added doga
This commit is contained in:
65
25_02_24/node_modules/http-status-emojis/index.js
generated
vendored
Normal file
65
25_02_24/node_modules/http-status-emojis/index.js
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = {
|
||||
100: '🏁',
|
||||
200: '✅',
|
||||
201: '📝',
|
||||
202: '🔄',
|
||||
204: '💭',
|
||||
300: '🔀',
|
||||
301: '🚚',
|
||||
302: '🔎',
|
||||
303: '📨',
|
||||
304: '💠',
|
||||
305: '🔁',
|
||||
306: '🔃',
|
||||
307: 'ℹ️',
|
||||
308: '🆕',
|
||||
400: '🚫',
|
||||
401: '🔐',
|
||||
402: '💰',
|
||||
403: '⛔',
|
||||
404: '❓',
|
||||
405: '❗',
|
||||
406: '🛡',
|
||||
407: '🔩',
|
||||
408: '⌛️',
|
||||
409: '💥',
|
||||
410: '💨',
|
||||
411: '📏',
|
||||
412: '🛑',
|
||||
413: '🗃',
|
||||
414: '🆖',
|
||||
415: '📼',
|
||||
416: '📐',
|
||||
417: '🤔',
|
||||
418: '🍵',
|
||||
421: '🔂',
|
||||
422: '💩',
|
||||
423: '🔒',
|
||||
424: '🧶',
|
||||
425: '⏱',
|
||||
426: '📤',
|
||||
428: '⛓',
|
||||
429: '🌋',
|
||||
431: '🤮',
|
||||
444: '🗑',
|
||||
451: '⚖️',
|
||||
494: '🧾',
|
||||
495: '🏅',
|
||||
496: '🏷',
|
||||
499: '🚶🏽',
|
||||
497: '❎',
|
||||
500: '💣',
|
||||
501: '📭',
|
||||
502: '🚧',
|
||||
503: '🚨',
|
||||
504: '⏲',
|
||||
505: '🕯',
|
||||
506: '☢️',
|
||||
507: '💯',
|
||||
508: '➰',
|
||||
509: '🧮',
|
||||
510: '🏗',
|
||||
511: '🔑'
|
||||
}
|
||||
21
25_02_24/node_modules/http-status-emojis/license
generated
vendored
Normal file
21
25_02_24/node_modules/http-status-emojis/license
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
|
||||
|
||||
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.
|
||||
31
25_02_24/node_modules/http-status-emojis/package.json
generated
vendored
Normal file
31
25_02_24/node_modules/http-status-emojis/package.json
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "http-status-emojis",
|
||||
"main": "index.js",
|
||||
"version": "2.2.0",
|
||||
"description": "Emojis for HTTP status codes",
|
||||
"license": "MIT",
|
||||
"repository": "bendrucker/http-status-emojis",
|
||||
"author": {
|
||||
"name": "Ben Drucker",
|
||||
"email": "bvdrucker@gmail.com",
|
||||
"url": "bendrucker.me"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "standard && tape test.js"
|
||||
},
|
||||
"keywords": [
|
||||
"http",
|
||||
"status",
|
||||
"code",
|
||||
"emojis"
|
||||
],
|
||||
"devDependencies": {
|
||||
"array-duplicates": "^1.0.1",
|
||||
"standard": "^12.0.1",
|
||||
"tape": "^4.0.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"test.js"
|
||||
]
|
||||
}
|
||||
27
25_02_24/node_modules/http-status-emojis/readme.md
generated
vendored
Normal file
27
25_02_24/node_modules/http-status-emojis/readme.md
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
# http-status-emojis [](https://travis-ci.org/bendrucker/http-status-emojis) [](https://greenkeeper.io/)
|
||||
|
||||
> Emojis for HTTP status codes
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save http-status-emojis
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const statusEmojis = require('http-status-emojis')
|
||||
|
||||
console.log(statusEmojis[500])
|
||||
// => 💣
|
||||
```
|
||||
|
||||
Open a pull request to add new emojis!
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Ben Drucker](http://bendrucker.me)
|
||||
30
25_02_24/node_modules/http-status-emojis/test.js
generated
vendored
Normal file
30
25_02_24/node_modules/http-status-emojis/test.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
'use strict'
|
||||
|
||||
const test = require('tape')
|
||||
const duplicates = require('array-duplicates')
|
||||
const httpStatusEmojis = require('./')
|
||||
|
||||
test('all properties are strings', function (t) {
|
||||
t.ok(Object.values(httpStatusEmojis).every(validCodePoint), 'all code points are valid (> 5000)')
|
||||
for (let [key, value] of Object.entries(httpStatusEmojis)) {
|
||||
if (!validCodePoint(value)) {
|
||||
t.fail(`expected emoji, found "${value}" at "${key}"`)
|
||||
}
|
||||
}
|
||||
t.end()
|
||||
})
|
||||
|
||||
test('all values are unique', function (t) {
|
||||
const d = duplicates(Object.values(httpStatusEmojis))
|
||||
const has = d.length
|
||||
|
||||
t.notOk(has, 'should not have duplicates')
|
||||
d.forEach(value => t.fail(`duplicate: ${value}`))
|
||||
|
||||
t.end()
|
||||
})
|
||||
|
||||
function validCodePoint (value) {
|
||||
// arbitrary, helps catch obvious mistakes
|
||||
return value.codePointAt(0) > 5000
|
||||
}
|
||||
Reference in New Issue
Block a user