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-tar/README.md generated vendored Normal file
View File

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

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

@@ -0,0 +1,16 @@
'use strict';
/**
* Check if a Buffer/Uint8Array is a TAR file
*
* @param {Buffer} buf
* @api public
*/
module.exports = function (buf) {
if (!buf || buf.length < 262) {
return false;
}
return buf[257] === 117 && buf[258] === 115 && buf[259] === 116 && buf[260] === 97 && buf[261] === 114;
};

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

@@ -0,0 +1,34 @@
{
"name": "is-tar",
"version": "1.0.0",
"description": "Check if a Buffer/Uint8Array is a TAR file",
"license": "MIT",
"repository": "kevva/is-tar",
"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",
"tar",
"type",
"uint8array"
],
"devDependencies": {
"ava": "0.0.4",
"read-chunk": "^1.0.0"
}
}