Gathering detailed insights and metrics for optipng
Gathering detailed insights and metrics for optipng
Gathering detailed insights and metrics for optipng
Gathering detailed insights and metrics for optipng
optipng-bin
OptiPNG wrapper that makes it seamlessly available as a local dependency
imagemin-optipng
Imagemin plugin for OptiPNG
@types/imagemin-optipng
TypeScript definitions for imagemin-optipng
@mlz/optipng-bin
OptiPNG wrapper that makes it seamlessly available as a local dependency
npm install optipng
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
BSD-3-Clause License
32 Stars
231 Commits
4 Forks
3 Watchers
4 Branches
4 Contributors
Updated on Jul 15, 2023
Latest Version
4.2.0
Package Id
optipng@4.2.0
Unpacked Size
41.60 kB
Size
11.19 kB
File Count
14
NPM Version
8.12.1
Node Version
18.5.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
18
1
The optipng command line utility as a readable/writable stream. This is handy for situations where you don't want to worry about writing the input to disc and reading the output afterwards.
If you don't have an optipng
binary in your PATH, node-optipng
will try to use one of the binaries provided by the node-optipng-bin
package.
The constructor optionally takes an array of command line options for
the optipng
binary:
1var OptiPng = require('optipng'), 2 myOptimizer = new OptiPng(['-o7']); 3 4sourceStream.pipe(myOptimizer).pipe(destinationStream);
OptiPng as a web service:
1var OptiPng = require('optipng'), 2 http = require('http'); 3 4http 5 .createServer(function (req, res) { 6 if (req.headers['content-type'] === 'image/png') { 7 res.writeHead(200, { 'Content-Type': 'image/png' }); 8 req.pipe(new OptiPng(['-o7'])).pipe(res); 9 } else { 10 res.writeHead(400); 11 res.end('Feed me a PNG!'); 12 } 13 }) 14 .listen(1337);
Make sure you have node.js and npm installed, then run:
npm install optipng
3-clause BSD license -- see the LICENSE
file for details.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 1/12 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More