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

9
node_modules/md5-hex/browser.js generated vendored Normal file
View File

@@ -0,0 +1,9 @@
import blueimpMd5 from 'blueimp-md5';
export default function md5Hex(data) {
if (Array.isArray(data)) {
data = data.join('');
}
return blueimpMd5(data);
}

19
node_modules/md5-hex/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,19 @@
/**
Create a MD5 hash with hex encoding.
@param data - Prefer buffers as they're faster to hash, but strings can be useful for small things.
Pass an array instead of concatenating strings and/or buffers. The output is the same, but arrays do not incur the overhead of concatenation.
@example
```
import fs from 'node:fs';
import md5Hex from 'md5-hex';
const buffer = fs.readFileSync('unicorn.png');
md5Hex(buffer);
//=> '1abcb33beeb811dca15f0ac3e47b88d9'
```
*/
export default function md5Hex(data: Buffer | string | ReadonlyArray<Buffer | string>): string;

20
node_modules/md5-hex/index.js generated vendored Normal file
View File

@@ -0,0 +1,20 @@
import crypto from 'node:crypto';
export default function md5Hex(data) {
const hash = crypto.createHash('md5');
const update = buffer => {
const inputEncoding = typeof buffer === 'string' ? 'utf8' : undefined;
hash.update(buffer, inputEncoding);
};
if (Array.isArray(data)) {
for (const element of data) {
update(element);
}
} else {
update(data);
}
return hash.digest('hex');
}

9
node_modules/md5-hex/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.

46
node_modules/md5-hex/package.json generated vendored Normal file
View File

@@ -0,0 +1,46 @@
{
"name": "md5-hex",
"version": "4.0.0",
"description": "Create a MD5 hash with hex encoding",
"license": "MIT",
"repository": "sindresorhus/md5-hex",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
},
"type": "module",
"exports": {
"node": "./index.js",
"default": "./browser.js"
},
"engines": {
"node": ">=12"
},
"scripts": {
"test": "xo && ava && tsd"
},
"files": [
"index.js",
"index.d.ts",
"browser.js"
],
"keywords": [
"hash",
"crypto",
"md5",
"hex",
"buffer",
"browser"
],
"dependencies": {
"blueimp-md5": "^2.18.0"
},
"devDependencies": {
"@types/node": "^15.0.1",
"ava": "^3.15.0",
"tsd": "^0.14.0",
"xo": "^0.39.1"
}
}

45
node_modules/md5-hex/readme.md generated vendored Normal file
View File

@@ -0,0 +1,45 @@
# md5-hex
> Create a MD5 hash with hex encoding
*Please don't use MD5 hashes for anything sensitive!*
Works in the browser too, when used with a bundler like Webpack, Rollup, Browserify.
Checkout [`hasha`](https://github.com/sindresorhus/hasha) if you need something more flexible.
## Install
```
$ npm install md5-hex
```
## Usage
```js
import fs from 'node:fs';
import md5Hex from 'md5-hex';
const buffer = fs.readFileSync('unicorn.png');
md5Hex(buffer);
//=> '1abcb33beeb811dca15f0ac3e47b88d9'
```
## API
### md5Hex(data)
#### data
Type: `Buffer | string | Array<Buffer | string>`
Prefer buffers as they're faster to hash, but strings can be useful for small things.
Pass an array instead of concatenating strings and/or buffers. The output is the same, but arrays do not incur the overhead of concatenation.
## Related
- [crypto-hash](https://github.com/sindresorhus/crypto-hash) - Tiny hashing module that uses the native crypto API in Node.js and the browser
- [hasha](https://github.com/sindresorhus/hasha) - Hashing made simple
- [hash-obj](https://github.com/sindresorhus/hash-obj) - Get the hash of an object