All Projects → unsplash → ts-imgix

unsplash / ts-imgix

Licence: other
Strongly-typed imgix URL builder function, `buildImgixUrl`.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to ts-imgix

jekyll-imgix
A plugin for integrating imgix into Jekyll sites
Stars: ✭ 49 (+68.97%)
Mutual labels:  imgix
imgix-java
A Java client library for generating URLs with imgix
Stars: ✭ 17 (-41.38%)
Mutual labels:  imgix
ilab-media-tools
mediacloud.press/
Stars: ✭ 98 (+237.93%)
Mutual labels:  imgix

ts-imgix

Strongly-typed imgix URL builder function, buildImgixUrl.

import * as assert from 'assert';
import { buildImgixUrl } from 'ts-imgix';

assert.strictEqual(
    buildImgixUrl('https://foo.com')({
        auto: {
            format: true,
        },
        w: 300,
    }),
    'https://foo.com/?auto=format&w=300',
);

Installation

yarn add ts-imgix
npm install ts-imgix

Development

yarn
npm run start
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].