Galerie und tage

This commit is contained in:
2021-11-23 17:56:26 +01:00
parent ff35366279
commit 5f873bee89
4693 changed files with 149659 additions and 301447 deletions

23
node_modules/is-zip/README.md generated vendored Normal file
View File

@@ -0,0 +1,23 @@
# is-zip [![Build Status](https://travis-ci.org/kevva/is-zip.svg?branch=master)](https://travis-ci.org/kevva/is-zip)
> Check if a Buffer/Uint8Array is a ZIP file
## Install
```sh
$ npm install --save is-zip
```
## Usage
```js
var isZip = require('is-zip');
var read = require('fs').readFileSync;
isZip(read('foo.zip'));
// => true
```
## License
[MIT License](http://en.wikipedia.org/wiki/MIT_License) © [Kevin Mårtensson](https://github.com/kevva)

16
node_modules/is-zip/index.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
'use strict';
/**
* Check if a Buffer/Uint8Array is a ZIP file
*
* @param {Buffer} buf
* @api public
*/
module.exports = function (buf) {
if (!buf || buf.length < 4) {
return false;
}
return buf[0] === 80 && buf[1] === 75 && (buf[2] === 3 || buf[2] === 5 || buf[2] === 7) && (buf[3] === 4 || buf[3] === 6 || buf[3] === 8);
};

34
node_modules/is-zip/package.json generated vendored Normal file
View File

@@ -0,0 +1,34 @@
{
"name": "is-zip",
"version": "1.0.0",
"description": "Check if a Buffer/Uint8Array is a ZIP file",
"license": "MIT",
"repository": "kevva/is-zip",
"author": {
"name": "Kevin Mårtensson",
"email": "kevinmartensson@gmail.com",
"url": "https://github.com/kevva"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "node test/test.js"
},
"files": [
"index.js"
],
"keywords": [
"archive",
"buffer",
"check",
"detect",
"zip",
"type",
"uint8array"
],
"devDependencies": {
"ava": "0.0.4",
"read-chunk": "^1.0.0"
}
}