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

21
build/node_modules/imagemin-upng/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) fisker Cheung
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.

48
build/node_modules/imagemin-upng/README.md generated vendored Normal file
View File

@@ -0,0 +1,48 @@
# imagemin-upng
> upng imagemin plugin
## Install
```
$ npm install --save imagemin-upng
```
## Usage
```js
const imagemin = require('imagemin');
const imageminUPNG = require('imagemin-upng');
imagemin(['images/*.png'], 'build/images', {use: [imageminUPNG()]}).then(() => {
console.log('Images optimized');
});
```
## API
### imageminUPNG([options])(buffer)
Returns a promise for a buffer.
#### options
##### cnum
Type: `number`<br>
Default: `256`
number of colors in the result (0 = lossless, 256 = lossy).
#### buffer
Type: `Buffer`
Buffer to optimize.
## License
MIT © [fisker Cheung](https://github.com/fisker)

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

@@ -0,0 +1,37 @@
'use strict'
var UPNG = require('upng-js')
var isPng = require('is-png')
var defaultOptions = {
cnum: 256
}
module.exports = function(options) {
options = Object.assign({}, defaultOptions, options)
return function(input) {
if (!Buffer.isBuffer(input)) {
return Promise.reject(new TypeError('Expected a buffer'))
}
if (!isPng(input)) {
return Promise.resolve(input)
}
var img = UPNG.decode(input)
var output = Buffer.from(
UPNG.encode(
UPNG.toRGBA8(img),
img.width,
img.height,
options.cnum,
img.frames.map(function(frame) {
return frame.delay
})
)
)
return Promise.resolve(output)
}
}

74
build/node_modules/imagemin-upng/package.json generated vendored Normal file
View File

@@ -0,0 +1,74 @@
{
"_from": "imagemin-upng",
"_id": "imagemin-upng@1.2.2",
"_inBundle": false,
"_integrity": "sha512-Fs3acKNRxt4XYXB8UUguDWCqHrvLCo6+blgbcTbJQymEX5Gtdj1LrJTa4mfL8OwrjcOb8SLE6+BVQC0mj0qgPA==",
"_location": "/imagemin-upng",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "imagemin-upng",
"name": "imagemin-upng",
"escapedName": "imagemin-upng",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/imagemin-upng/-/imagemin-upng-1.2.2.tgz",
"_shasum": "3659bcaa57f8e113616df1c0db361452b90aaf27",
"_spec": "imagemin-upng",
"_where": "/Users/asciidisco/Desktop/asciidisco.com/build",
"author": {
"name": "fisker Cheung",
"email": "lionkay@gmail.com",
"url": "https://github.com/fisker"
},
"bugs": {
"url": "https://github.com/fisker/imagemin-upng/issues"
},
"bundleDependencies": false,
"dependencies": {
"is-png": "^1.0.0",
"upng-js": "^2.1.0"
},
"deprecated": false,
"description": "upng imagemin plugin",
"devDependencies": {
"ava": "0.24.0"
},
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
"homepage": "https://github.com/fisker/imagemin-upng#readme",
"keywords": [
"compress",
"image",
"imageminplugin",
"img",
"minify",
"optimize",
"png",
"apng",
"upng",
"upng-js"
],
"license": "MIT",
"name": "imagemin-upng",
"repository": {
"type": "git",
"url": "git+https://github.com/fisker/imagemin-upng.git"
},
"scripts": {
"release": "npm --registry=https://registry.npmjs.org/ publish",
"test": "eslint index.js && ava"
},
"version": "1.2.2"
}