Installations
npm install optipng
Releases
Unable to fetch releases
Developer
papandreou
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
18.5.0
NPM Version
8.12.1
Statistics
32 Stars
231 Commits
5 Forks
4 Watching
4 Branches
4 Contributors
Updated on 15 Jul 2023
Bundle Size
11.57 kB
Minified
4.03 kB
Minified + Gzipped
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
1,746,295
Last day
11.3%
1,573
Compared to previous day
Last week
-5.4%
6,044
Compared to previous week
Last month
-7.3%
24,479
Compared to previous month
Last year
37.4%
377,151
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
4
Dev Dependencies
18
Optional Dependencies
1
node-optipng
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);
Installation
Make sure you have node.js and npm installed, then run:
npm install optipng
Releases
License
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
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: BSD 3-Clause "New" or "Revised" License: LICENSE:0
Reason
0 existing vulnerabilities detected
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
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/papandreou/node-optipng/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/papandreou/node-optipng/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/papandreou/node-optipng/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/papandreou/node-optipng/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/papandreou/node-optipng/ci.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:22
- Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:42
- Info: 0 out of 4 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 third-party GitHubAction dependencies pinned
- Info: 0 out of 2 npmCommand dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 19 are checked with a SAST tool
Score
3.4
/10
Last Scanned on 2024-11-18
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