Skip to content
Strongly-typed imgix URL builder function, `buildImgixUrl`.
Branch: master
Clone or download
Latest commit 245e6ff Mar 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.editorconfig Initial commit Dec 14, 2018
.gitignore
.prettierignore
.prettierrc
README.md Remove funfix-core Jan 3, 2019
demo1.png Initial commit Dec 14, 2018
demo2.png
demo3.png
package.json
tsconfig.json Remove Lodash Jan 3, 2019
tslint.json Initial commit Dec 14, 2018
yarn.lock

README.md

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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.