Initalize

This commit is contained in:
Your Name
2026-05-03 12:12:57 -04:00
commit 38652eb9b5
10603 changed files with 1762136 additions and 0 deletions

39
node_modules/gravatar-url/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,39 @@
import {LiteralUnion} from 'type-fest';
export interface Options {
/**
[Size](https://en.gravatar.com/site/implement/images/#size) of the image. Values: `1..2048`.
@default 80
*/
readonly size?: number;
/**
[Image](https://en.gravatar.com/site/implement/images/#default-image) to return if the identifier didn't match any Gravatar profile. Either a ustom URL or [`404`](https://gravatar.com/avatar/5cc22f8c06631cccead907acbb627b69?default=404), [`mm`](https://gravatar.com/avatar/5cc22f8c06631cccead907acbb627b69?default=mm), [`identicon`](https://gravatar.com/avatar/5cc22f8c06631cccead907acbb627b69?default=identicon), [`monsterid`](https://gravatar.com/avatar/5cc22f8c06631cccead907acbb627b69?default=monsterid), [`wavatar`](https://gravatar.com/avatar/5cc22f8c06631cccead907acbb627b69?default=wavatar), [`retro`](https://gravatar.com/avatar/5cc22f8c06631cccead907acbb627b69?default=retro), [`blank`](https://gravatar.com/avatar/5cc22f8c06631cccead907acbb627b69?default=blank).
@default 'https://gravatar.com/avatar/00000000000000000000000000000000'
*/
readonly default?: LiteralUnion<'404' | 'mm' | 'identicon' | 'monsterid' | 'wavatar' | 'retro' | 'blank', string>;
/**
Allowed [rating](https://en.gravatar.com/site/implement/images/#rating) of the image.
@default 'g'
*/
readonly rating?: 'g' | 'pg' | 'r' | 'x';
}
/**
Get the URL to a Gravatar image from an identifier, such as an email.
@param identifier - Identifier for which to get the Gravatar image. This will typically be an email matching a Gravatar profile, but can technically be any string. The Gravatar service only sees a hash of the identifier, so you could actually use this to get pseudo-random avatars for any entity, e.g. based on its ID. Note that if the identifier contains an `@`, it is assumed to be an email, and will therefore be lower-cased and trimmed before hashing, as per the Gravatar instructions - otherwise it will be hashed as-is.
@example
```
import gravatarUrl from 'gravatar-url';
gravatarUrl('sindresorhus@gmail.com', {size: 200});
//=> 'https://gravatar.com/avatar/d36a92237c75c5337c17b60d90686bf9?size=200'
```
*/
export default function gravatarUrl(identifier: string, options?: Options): string;

17
node_modules/gravatar-url/index.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
import md5Hex from 'md5-hex';
export default function gravatarUrl(identifier, options) {
if (!identifier) {
throw new Error('Please specify an identifier, such as an email address');
}
if (identifier.includes('@')) {
identifier = identifier.toLowerCase().trim();
}
const baseUrl = new URL('https://gravatar.com/avatar/');
baseUrl.pathname += md5Hex(identifier);
baseUrl.search = new URLSearchParams(options);
return baseUrl.toString();
}

9
node_modules/gravatar-url/license generated vendored Normal file
View File

@@ -0,0 +1,9 @@
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.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.

44
node_modules/gravatar-url/package.json generated vendored Normal file
View File

@@ -0,0 +1,44 @@
{
"name": "gravatar-url",
"version": "4.0.1",
"description": "Get the URL to a Gravatar image from an identifier, such as an email",
"license": "MIT",
"repository": "sindresorhus/gravatar-url",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
},
"type": "module",
"exports": "./index.js",
"engines": {
"node": ">=12"
},
"scripts": {
"test": "xo && ava && tsd"
},
"files": [
"index.js",
"index.d.ts"
],
"keywords": [
"gravatar",
"avatar",
"profile",
"image",
"picture",
"photo",
"hash",
"email",
"identifier"
],
"dependencies": {
"md5-hex": "^4.0.0",
"type-fest": "^1.0.2"
},
"devDependencies": {
"ava": "^3.15.0",
"tsd": "^0.14.0",
"xo": "^0.39.1"
}
}

66
node_modules/gravatar-url/readme.md generated vendored Normal file
View File

@@ -0,0 +1,66 @@
# gravatar-url
> Get the URL to a [Gravatar](https://en.gravatar.com) image from an identifier, such as an email
## Install
```
$ npm install gravatar-url
```
## Usage
```js
import gravatarUrl from 'gravatar-url';
gravatarUrl('sindresorhus@gmail.com', {size: 200});
//=> 'https://gravatar.com/avatar/d36a92237c75c5337c17b60d90686bf9?size=200'
```
## API
### gravatarUrl(identifier, options?)
#### identifier
Type: `string`
Identifier for which to get the Gravatar image.
This will typically be an email matching a Gravatar profile, but can technically be any string.
The Gravatar service only sees a hash of the identifier, so you could actually use this to get pseudo-random avatars for any entity, e.g. based on its ID.
Note that if the identifier contains an `@`, it is assumed to be an email, and will therefore be lower-cased and trimmed before hashing, as per the Gravatar instructions - otherwise it will be hashed as-is.
#### options
Type: `object`
##### size
Type: `number`\
Default: `80`\
Values: `1..2048`
[Size](https://en.gravatar.com/site/implement/images/#size) of the image.
##### default
Type: `string`\
Default: [This image](https://gravatar.com/avatar/00000000000000000000000000000000)\
Values: Custom URL or [`404`](https://gravatar.com/avatar/5cc22f8c06631cccead907acbb627b69?default=404), [`mm`](https://gravatar.com/avatar/5cc22f8c06631cccead907acbb627b69?default=mm), [`identicon`](https://gravatar.com/avatar/5cc22f8c06631cccead907acbb627b69?default=identicon), [`monsterid`](https://gravatar.com/avatar/5cc22f8c06631cccead907acbb627b69?default=monsterid), [`wavatar`](https://gravatar.com/avatar/5cc22f8c06631cccead907acbb627b69?default=wavatar), [`retro`](https://gravatar.com/avatar/5cc22f8c06631cccead907acbb627b69?default=retro), [`blank`](https://gravatar.com/avatar/5cc22f8c06631cccead907acbb627b69?default=blank)
[Image](https://en.gravatar.com/site/implement/images/#default-image) to return if the identifier didn't match any Gravatar profile.
##### rating
Type: `string`\
Default: `g`\
Values: `g` `pg` `r` `x`
Allowed [rating](https://en.gravatar.com/site/implement/images/#rating) of the image.
## Related
- [get-gravatar](https://github.com/sindresorhus/get-gravatar) - Get a Gravatar image