Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

thumbor-ts

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thumbor-ts

Typescript thumbor url builder

latest
Source
npmnpm
Version
1.3.91
Version published
Weekly downloads
80
2566.67%
Maintainers
1
Weekly downloads
 
Created
Source

Thumbor TS

Immutable, method chained, TypeScript DSL for building Thumbor URLs.

Minzipped Size

Installation

  • yarn add thumbor-ts
  • pnpm i thumbor-ts
  • npm i --save thumbor-ts

Usage

import Thumbor from 'thumbor-ts';

// Your encryption key is not required, but your link will be unsafe.
const thumbor = Thumbor({
  serverUrl: 'http://myserver.thumbor.com',
  securityKey: 'MY_KEY'
});

// Generate your url
const thumborUrl = thumbor
  .setImagePath('00223lsvrnzeaf42.png')
  .resize(50, 50)
  .smartCrop()
  .format('webp')
  .buildUrl();

FAQs

Package last updated on 10 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts