Socket
Socket
Sign inDemoInstall

imagemin-upng

Package Overview
Dependencies
3
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    imagemin-upng

upng imagemin plugin


Version published
Weekly downloads
206
decreased by-57.35%
Maintainers
1
Install size
898 kB
Created
Weekly downloads
 

Readme

Source

imagemin-upng

upng imagemin plugin

Install

npm install --save imagemin-upng

Usage

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 Default: 256

number of colors in the result (0 = lossless, 256 = lossy).

buffer

Type: Buffer

Buffer to optimize.

Keywords

FAQs

Last updated on 05 Aug 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc