This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@bitkidd/adonis-imgix
TypeScript icon, indicating that this package has built-in type declarations

3.1.4 • Public • Published

Adonis Imgix

adonis, imgix

npm-image license-image typescript-image

An Imgix provider for Adonis 5.x

Installation

You may install this package via:

npm i @bitkidd/adonis-imgix
# or
yarn add @bitkidd/adonis-imgix

After installation you have to configure it:

node ace configure @bitkidd/adonis-imgix

This will create /config/imgix.ts file where you can configure the provider.

This package depends on one main ENV variable, IMGIX_DOMAIN, please add it to your env.ts file and actual .env file.

Usage

To use IMgix provider you should call it via import

import Imgix from '@ioc:Adonis/Addons/Imgix'

const url = Imgix.buildUrl('/test.jpg')

To properly configure the provider, follow the docs here: @imgix/core-js

Readme

Keywords

Package Sidebar

Install

npm i @bitkidd/adonis-imgix

Weekly Downloads

1

Version

3.1.4

License

MIT

Unpacked Size

7.16 kB

Total Files

8

Last publish

Collaborators

  • bitkidd