Socket
Socket
Sign inDemoInstall

remix-image-sharp

Package Overview
Dependencies
82
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    remix-image-sharp

A Sharp transformer for remix-image


Version published
Weekly downloads
612
decreased by-38.8%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Remix-Image-Sharp

👋 Intro

A Sharp transformer for Remix-Image

🚀 How to use

Install

To install this library, use one of the following commands:

npm install -S remix-image-sharp sharp
yarn add remix-image-sharp sharp

Implement

To use this transformer, set the transformer property in your ImageLoader API route:

import type { LoaderFunction } from "remix";
import { sharpTransformer } from "remix-image-sharp";
import { imageLoader, DiskCache } from "remix-image/server";

const config = {
  selfUrl: "http://localhost:3000",
  cache: new DiskCache(),
  transformer: sharpTransformer,
};

export const loader: LoaderFunction = ({ request }) => {
  return imageLoader(config, request);
};

Docs

  • Documentation for this library can be found at: https://remix-image.mcfarl.in

FAQs

Last updated on 16 Dec 2022

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