node-webpmux
Advanced tools
Sorry, the diff of this file is not supported yet
+16
-0
| /* | ||
| node-webpmux - NodeJS module for interacting with WebP images | ||
| Copyright (C) 2023 ApeironTsuka | ||
| This program is free software: you can redistribute it and/or modify | ||
| it under the terms of the GNU Lesser General Public License as published by | ||
| the Free Software Foundation, either version 3 of the License, or | ||
| (at your option) any later version. | ||
| This program is distributed in the hope that it will be useful, | ||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| GNU Lesser General Public License for more details. | ||
| */ | ||
| /* | ||
| This file contains examples for how to do some common/basic things. | ||
@@ -3,0 +19,0 @@ It will *not* execute. This is on purpose. |
+16
-0
@@ -0,1 +1,17 @@ | ||
| /* | ||
| node-webpmux - NodeJS module for interacting with WebP images | ||
| Copyright (C) 2023 ApeironTsuka | ||
| This program is free software: you can redistribute it and/or modify | ||
| it under the terms of the GNU Lesser General Public License as published by | ||
| the Free Software Foundation, either version 3 of the License, or | ||
| (at your option) any later version. | ||
| This program is distributed in the hope that it will be useful, | ||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| GNU Lesser General Public License for more details. | ||
| */ | ||
| let fs = {}; | ||
@@ -2,0 +18,0 @@ if (typeof window === 'undefined') { |
+16
-0
@@ -0,1 +1,17 @@ | ||
| /* | ||
| node-webpmux - NodeJS module for interacting with WebP images | ||
| Copyright (C) 2023 ApeironTsuka | ||
| This program is free software: you can redistribute it and/or modify | ||
| it under the terms of the GNU Lesser General Public License as published by | ||
| the Free Software Foundation, either version 3 of the License, or | ||
| (at your option) any later version. | ||
| This program is distributed in the hope that it will be useful, | ||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| GNU Lesser General Public License for more details. | ||
| */ | ||
| const libwebpF = require('./libwebp/libwebp.js'); | ||
@@ -2,0 +18,0 @@ const ranges = { |
+15
-0
@@ -0,1 +1,16 @@ | ||
| /* | ||
| node-webpmux - NodeJS module for interacting with WebP images | ||
| Copyright (C) 2023 ApeironTsuka | ||
| This program is free software: you can redistribute it and/or modify | ||
| it under the terms of the GNU Lesser General Public License as published by | ||
| the Free Software Foundation, either version 3 of the License, or | ||
| (at your option) any later version. | ||
| This program is distributed in the hope that it will be useful, | ||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| GNU Lesser General Public License for more details. | ||
| */ | ||
| #include <stdlib.h> | ||
@@ -2,0 +17,0 @@ #include <stdio.h> |
+2
-2
| { | ||
| "name": "node-webpmux", | ||
| "version": "3.1.9", | ||
| "version": "3.2.0", | ||
| "description": "A pure Javascript/WebAssembly re-implementation of webpmux", | ||
@@ -14,3 +14,3 @@ "main": "webp.js", | ||
| "author": "ApeironTsuka", | ||
| "license": "ISC", | ||
| "license": "LGPL-3.0-or-later", | ||
| "bugs": { | ||
@@ -17,0 +17,0 @@ "url": "https://github.com/ApeironTsuka/node-webpmux/issues" |
+16
-0
@@ -0,1 +1,17 @@ | ||
| /* | ||
| node-webpmux - NodeJS module for interacting with WebP images | ||
| Copyright (C) 2023 ApeironTsuka | ||
| This program is free software: you can redistribute it and/or modify | ||
| it under the terms of the GNU Lesser General Public License as published by | ||
| the Free Software Foundation, either version 3 of the License, or | ||
| (at your option) any later version. | ||
| This program is distributed in the hope that it will be useful, | ||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| GNU Lesser General Public License for more details. | ||
| */ | ||
| const IO = require('./io.js'); | ||
@@ -2,0 +18,0 @@ const nullByte = Buffer.alloc(1); |
+2
-2
@@ -319,6 +319,6 @@ # node-webpmux | ||
| [get/set]ImageData and [get/set]FrameData are powered by Google's official libwebp library obtained from the [GitHub mirror](https://github.com/webmproject/libwebp).<br /> | ||
| Commit 05c46984 was the latest at the time of compilation.<br /> | ||
| Commit 89c5b91 was the latest at the time of compilation.<br /> | ||
| This library was compiled with Emscripten with the command `emcc -O3 -s WASM=1 -s MODULARIZE -s EXPORTED_RUNTIME_METHODS='[cwrap]' -s ALLOW_MEMORY_GROWTH=1 -s EXPORT_NAME=LibWebP -DHAVE_CONFIG_H -I libwebp binding.cpp libwebp/src/{dec,dsp,demux,enc,mux,utils}/*.c libwebp/sharpyuv/*.c --bind -o libwebp.js`.<br /> | ||
| binding.cpp is a shim I wrote to bridge the needed parts together and can be found in the libwebp/ directory. | ||
| libwebp.mjs, found in the root, is the Javascript interface to it. | ||
| libwebp.js, found in the root, is the Javascript interface to it. | ||
@@ -325,0 +325,0 @@ At present, the only options for encoding are setting the lossless preset, quality, method, and exact flag.<br /> |
+16
-0
@@ -0,1 +1,17 @@ | ||
| /* | ||
| node-webpmux - NodeJS module for interacting with WebP images | ||
| Copyright (C) 2023 ApeironTsuka | ||
| This program is free software: you can redistribute it and/or modify | ||
| it under the terms of the GNU Lesser General Public License as published by | ||
| the Free Software Foundation, either version 3 of the License, or | ||
| (at your option) any later version. | ||
| This program is distributed in the hope that it will be useful, | ||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| GNU Lesser General Public License for more details. | ||
| */ | ||
| // For more information on the WebP format, see https://developers.google.com/speed/webp/docs/riff_container | ||
@@ -2,0 +18,0 @@ const { WebPReader, WebPWriter } = require('./parser.js'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Copyleft License
LicenseCopyleft license information was found.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Mixed license
LicensePackage contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
LicenseA license not known to be considered permissive was found.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
529164
2.32%12
9.09%1308
4.81%3
Infinity%70
-30%