Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@coffeekraken/s-images-builder

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coffeekraken/s-images-builder

Images builder that let you compress and create multiple versions of your images with ease. Support webp generation.

  • 2.0.0-alpha.18
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

{{#> layout-readme }}

SImagesBuilder

This package expose a simple SImagesBuilder class that lets you build, compress, resize, etc... your images.

Features

This builder class gives you some features like:

  • Set a target quality
  • Specify max width and height
  • Generate .webp version of each images
  • Specify multiple resolutions like [1,2,3] that will generate multiple files for each images
  • Specify specific parameters for somr sub-directory, etc...
  • And more...

Usage

To make use of this builder, you have two choices:

Using the sugar CLI

Simply call this command:

sugar images.build [arguments]

For arguments documentation, simple use:

sugar images.build -h
Using the API

Here's a simple usage example

import __SImagesBuilder from '@coffeekraken/s-images-builder';
const builder = new __SImagesBuilder();
await builder.build({});
Build parameters

{{> interface namespace='@coffeekraken.s-images-builder.node.interface.SImagesBuilderBuildParamsInterface' }}

Settings

{{> interface namespace='@coffeekraken.s-images-builder.node.interface.SImagesBuilderSettingsInterface' }}

API

For more information about the API, please check out the API documentation

{{/ layout-readme }}

FAQs

Package last updated on 10 Aug 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc