lup-images
TypeScript icon, indicating that this package has built-in type declarations

1.2.4 • Public • Published

GitHub package.json version npm bundle size GitHub Workflow Status NPM

lup-images

Node module for optimizing images in web applications.

Example Server

const { ImagesRequestHandler } = require('lup-images');
const express = require('express');

const app = express();

app.use('/images/*', ImagesRequestHandler());

app.listen();

Example JSX

<OptimizedImage src="https://picsum.photos/200/300" width={200} height={300} />

For NextJS

To work with NextJS you need to add the following to your next.config.js:

experimental: {
    serverComponentsExternalPackages: ["sharp"],
}

Package Sidebar

Install

npm i lup-images

Weekly Downloads

0

Version

1.2.4

License

MIT

Unpacked Size

67.3 kB

Total Files

17

Last publish

Collaborators

  • luca-vogels