Last commit july 5th

This commit is contained in:
2024-07-05 13:46:23 +02:00
parent dad0d86e8c
commit b0e4dfbb76
24982 changed files with 2621219 additions and 413 deletions

11
spa/node_modules/md5-file/LICENSE.md generated vendored Normal file
View File

@@ -0,0 +1,11 @@
# License
The MIT License (MIT)
Copyright (c) 2015 - 2017 Rory Bradford and contributors.
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.

7
spa/node_modules/md5-file/cli.js generated vendored Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env node
'use strict'
const md5File = require('./')
console.log(md5File.sync(process.argv[2]))

16
spa/node_modules/md5-file/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,16 @@
/**
* Asynchronously get the MD5-sum of the file at `path`
*
* @returns a `Promise` that will be resolved with a string containing the MD5-sum
*/
declare function md5File (path: string): Promise<string>
/**
* Synchronously get the MD5-sum of the file at `path`
*
* @returns a string containing the MD5-sum
*/
declare function md5FileSync (path: string): string
declare const module: (typeof md5File) & { sync: typeof md5FileSync }
export = module

43
spa/node_modules/md5-file/index.js generated vendored Normal file
View File

@@ -0,0 +1,43 @@
const crypto = require('crypto')
const fs = require('fs')
const BUFFER_SIZE = 8192
function md5FileSync (path) {
const fd = fs.openSync(path, 'r')
const hash = crypto.createHash('md5')
const buffer = Buffer.alloc(BUFFER_SIZE)
try {
let bytesRead
do {
bytesRead = fs.readSync(fd, buffer, 0, BUFFER_SIZE)
hash.update(buffer.slice(0, bytesRead))
} while (bytesRead === BUFFER_SIZE)
} finally {
fs.closeSync(fd)
}
return hash.digest('hex')
}
function md5File (path) {
return new Promise((resolve, reject) => {
const output = crypto.createHash('md5')
const input = fs.createReadStream(path)
input.on('error', (err) => {
reject(err)
})
output.once('readable', () => {
resolve(output.read().toString('hex'))
})
input.pipe(output)
})
}
module.exports = md5File
module.exports.sync = md5FileSync

27
spa/node_modules/md5-file/package.json generated vendored Normal file
View File

@@ -0,0 +1,27 @@
{
"name": "md5-file",
"version": "5.0.0",
"keywords": [
"md5",
"md5sum",
"checksum"
],
"repository": "roryrjb/md5-file",
"license": "MIT",
"bin": "cli.js",
"files": [
"cli.js",
"index.d.ts",
"index.js"
],
"scripts": {
"test": "standard && mocha"
},
"devDependencies": {
"mocha": "^7.1.1",
"standard": "^14.3.3"
},
"engines": {
"node": ">=10.13.0"
}
}

49
spa/node_modules/md5-file/readme.md generated vendored Normal file
View File

@@ -0,0 +1,49 @@
# MD5 file
Get the MD5-sum of a given file, with low memory usage, even on huge files.
## Installation
```sh
npm install --save md5-file
```
## Usage
### As a module
```js
const md5File = require('md5-file')
/* Async usage */
md5File('LICENSE.md').then((hash) => {
console.log(`The MD5 sum of LICENSE.md is: ${hash}`)
})
/* Sync usage */
const hash = md5File.sync('LICENSE.md')
console.log(`The MD5 sum of LICENSE.md is: ${hash}`)
```
### As a command line tool
```sh
$ md5-file LICENSE.md
ad1faf9381e43c471dc381c17a4ee4b6
```
## API
### `md5File(path: string) => Promise<string>`
Asynchronously get the MD5-sum of the file at `path`.
Returns a [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) that will be resolved with a string containing the MD5-sum.
### `md5File.sync(path: string) => string`
Synchronously get the MD5-sum of the file at `path`.
### License
MIT