Ts Imgix Save

Strongly-typed imgix URL builder function, `buildImgixUrl`.

Project README

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
Open Source Agenda is not affiliated with "Ts Imgix" Project. README Source: unsplash/ts-imgix
Stars
33
Open Issues
7
Last Commit
4 months ago
Repository
Tags

Open Source Agenda Badge

Open Source Agenda Rating