@tkvw/imgproxy.macro

1.0.1 • Public • Published

Imgproxy Macro

Allows signing urls from a babel macro.

Installation

Make sure babel-plugin-macros is enabled in the babel configuration. Then install the macro using:

npm i -D @tkvw/imgproxy.macro

Usage

import sign from "@tkvw/imgproxy.macro" 

const url = sign({
    host: "", // Your imgproxy host
    key: "", // Key to sign the url 
    salt: "", // Salt to sign the url
    url: "" // URL to the image
})

Package Sidebar

Install

npm i @tkvw/imgproxy.macro

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

13.6 kB

Total Files

8

Last publish

Collaborators

  • tkvw