Catalog npm
Back to packageRELEASE DETAILS

0.1.2

npm

2webp

A simple image converter for web developers.

Published12 Apr 2025
Direct dependencies4
Transitive dependenciesNot calculated

README

Current package documentation

2webp

A simple image converter for web developers.

Convert images asyncronously in bulk using Bun/Sharp.

Install (global)

Install 2webp globally using NPM

bun add -g 2webp

On Linux - make sure you have libvips

sudo apt-get install libvips-dev

How to Use

When converting images 2webp will automatically batch and convert images asyncrounously. You can convert large folders of images safely with 2webp.

Syntax

2webp {dir/file} {--output=/example} {--format=png/jpeg/gif/tiff/webp}

Examples

To convert all the images in the current directory to webp

The output is in current directory

2webp .

Specify output directory, convert all images in current dir

2webp . --output=./output

Convert all images in current dir to png

2webp . --format=png

Development

To install dependencies:

bun install

To run:

bun run index.ts

This project was created using Bun.

Bun is a fast all-in-one JavaScript runtime.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
sharp
Environment
{
  "local_name": "sharp",
  "alias": false,
  "peer_metadata": null
}
^0.34.1runtime
fs-extra
Environment
{
  "local_name": "fs-extra",
  "alias": false,
  "peer_metadata": null
}
^11.3.0runtime
@types/bun
Environment
{
  "local_name": "@types/bun",
  "alias": false,
  "peer_metadata": null
}
latestdevelopment
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "642de3a4a01f974a0c4cddc84a6e7e7e01e914d3",
  "tarball": "https://registry.npmjs.org/2webp/-/2webp-0.1.2.tgz",
  "fileCount": 5,
  "integrity": "sha512-m86kpVAVC2ZuzH79+UK2leCb2IfpsvMp2KDds7C7VMfXscPdzTb4Ha5K+4BtOd0oNCQ0y5lfdDsHwpOy4fkPdw==",
  "signatures": [
    {
      "sig": "MEUCIQCmIWizYkRgeQ9yzKr3MaSMZQ1rk5xqCdLJ861xIZaJSQIgKTlAbXtnAT74VKgbWrCq5p+NR9Zjh4kMbKxGXgcow4Q=",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 16111
}

Repository

PENDING
coreydemarse/2webp

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:20 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:4429e265cae6fd4e474ba6347b033adaedff70e4d7532df3017ad1325f9502b2

Other collected versions

0.1.612 Apr0.1.512 Apr0.1.412 Apr0.1.312 Apr0.1.112 Apr0.1.012 AprView all collected versions →