first commit

This commit is contained in:
s.golasch
2023-08-01 13:49:46 +02:00
commit 1fc239fd54
20238 changed files with 3112246 additions and 0 deletions

37
build/node_modules/imagemin-advpng/index.js generated vendored Normal file
View File

@@ -0,0 +1,37 @@
'use strict';
const execBuffer = require('exec-buffer');
const advpng = require('advpng-bin');
const isPng = require('is-png');
const tempfile = require('tempfile');
module.exports = opts => buf => {
opts = Object.assign({optimizationLevel: 3}, opts);
if (!Buffer.isBuffer(buf)) {
return Promise.reject(new TypeError(`Expected a \`Buffer\`, got \`${typeof buf}\``));
}
if (!isPng(buf)) {
return Promise.resolve(buf);
}
const args = ['--recompress', '-q'];
const tmp = tempfile();
if (typeof opts.optimizationLevel === 'number') {
args.push(`-${opts.optimizationLevel}`);
}
args.push(execBuffer.input);
return execBuffer({
input: buf,
bin: advpng,
args,
inputPath: tmp,
outputPath: tmp
}).catch(err => {
err.message = err.stderr || err.message;
throw err;
});
};

9
build/node_modules/imagemin-advpng/license generated vendored Normal file
View File

@@ -0,0 +1,9 @@
MIT License
Copyright (c) imagemin (github.com/imagemin)
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.

86
build/node_modules/imagemin-advpng/package.json generated vendored Normal file
View File

@@ -0,0 +1,86 @@
{
"_from": "imagemin-advpng",
"_id": "imagemin-advpng@4.0.0",
"_inBundle": false,
"_integrity": "sha512-IyrmLD5wbbMpfobpsmyS+f8pwDJ0Owgd74Nv9z/fEgPJoxwy09PMkIFCP5tgiQDp2//r1qVDxoMDUkqq1dBl1A==",
"_location": "/imagemin-advpng",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "imagemin-advpng",
"name": "imagemin-advpng",
"escapedName": "imagemin-advpng",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/imagemin-advpng/-/imagemin-advpng-4.0.0.tgz",
"_shasum": "936a8712cfae299fbf3c3aac4206d6bf89c3f241",
"_spec": "imagemin-advpng",
"_where": "/Users/asciidisco/Desktop/asciidisco.com/build",
"author": {
"name": "Kevin Mårtensson",
"email": "kevinmartensson@gmail.com",
"url": "github.com/kevva"
},
"bugs": {
"url": "https://github.com/imagemin/imagemin-advpng/issues"
},
"bundleDependencies": false,
"dependencies": {
"advpng-bin": "^3.0.0",
"exec-buffer": "^3.1.0",
"is-png": "^1.0.0",
"tempfile": "^2.0.0"
},
"deprecated": false,
"description": "AdvPNG imagemin plugin",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
"homepage": "https://github.com/imagemin/imagemin-advpng#readme",
"keywords": [
"advpng",
"compress",
"gulpplugin",
"image",
"imageminplugin",
"img",
"minify",
"optimize",
"png"
],
"license": "MIT",
"maintainers": [
{
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
{
"name": "Shinnosuke Watanabe",
"url": "github.com/shinnn"
}
],
"name": "imagemin-advpng",
"repository": {
"type": "git",
"url": "git+https://github.com/imagemin/imagemin-advpng.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "4.0.0"
}

57
build/node_modules/imagemin-advpng/readme.md generated vendored Normal file
View File

@@ -0,0 +1,57 @@
# imagemin-advpng [![Build Status](http://img.shields.io/travis/imagemin/imagemin-advpng.svg?style=flat)](https://travis-ci.org/imagemin/imagemin-advpng) [![Build status](https://ci.appveyor.com/api/projects/status/8vw4a6jtvhao3jev?svg=true)](https://ci.appveyor.com/project/ShinnosukeWatanabe/imagemin-advpng)
> advpng imagemin plugin
## Install
```
$ npm install imagemin-advpng
```
## Usage
```js
const imagemin = require('imagemin');
const imageminAdvpng = require('imagemin-advpng');
imagemin(['images/*.png'], 'build/images', {use: [imageminAdvpng()]}).then(() => {
console.log('Images optimized');
});
```
## API
### imageminAdvpng([options])(buffer)
#### options
Type: `Object`
##### optimizationLevel
Type: `number`<br>
Default: `3`
Select an optimization level between `0` and `4`.
Levels:
`0` Don't compress<br>
`1` Compress fast (zlib)<br>
`2` Compress normal (7z)<br>
`3` Compress extra (7z)<br>
`4` Compress extreme (zopfli)
#### buffer
Type: `Buffer`
Buffer to optimize.
## License
MIT © [imagemin](https://github.com/imagemin)