https://github.com/imgix/typescript-imgix-url-params
TypeScript definitions of imgix's URL parameters
https://github.com/imgix/typescript-imgix-url-params
images imgix src srcset typescript url-builder
Last synced: 9 months ago
JSON representation
TypeScript definitions of imgix's URL parameters
- Host: GitHub
- URL: https://github.com/imgix/typescript-imgix-url-params
- Owner: imgix
- License: mit
- Created: 2022-11-15T11:09:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-12T22:51:05.000Z (over 3 years ago)
- Last Synced: 2024-11-07T12:29:26.371Z (over 1 year ago)
- Topics: images, imgix, src, srcset, typescript, url-builder
- Language: TypeScript
- Homepage: https://unpkg.com/typescript-imgix-url-params/dist/index.d.ts
- Size: 30.3 KB
- Stars: 5
- Watchers: 8
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# typescript-imgix-url-params
> TypeScript definitions of imgix's URL parameters.
[](https://www.npmjs.com/package/typescript-imgix-url-params)
[](https://www.npmjs.com/package/typescript-imgix-url-params)
[](https://github.com/JamieMason)
[](https://twitter.com/fold_left)
## 🌩 Installation
```bash
npm install --save-dev typescript-imgix-url-params
```
## ⚠️ Status
This package was created on 15 Nov 2022, it is new but please give it a try and
[give your feedback](https://github.com/JamieMason/typescript-imgix-url-params/issues/new).
## 🕹 Usage
```ts
import type { ImgixUrl } from 'typescript-imgix-url-params';
const params: ImgixUrl.Params = {
w: 100,
h: 100,
fm: 'pjpg',
};
```
## ⚙️ Contributing
To update this package we regenerate the schema based on the latest contents from https://github.com/imgix/imgix-url-params:
1. Bump `imgix-url-params` in package.json.
1. `yarn install`
1. `yarn build`
1. `npm publish .`