GithubHelp home page GithubHelp logo

brettm12345 / thumbor-ts Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 2.0 2.98 MB

Immutable TypeScript client for building Thumbor URLs

License: MIT License

TypeScript 100.00%
thumbor thumbor-urls functional-programming fp-ts

thumbor-ts's Introduction

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
  .setPath('00223lsvrnzeaf42.png')
  .resize(50, 50)
  .smartCrop()
  .format('webp')
  .buildUrl();

thumbor-ts's People

Contributors

brettm12345 avatar dependabot[bot] avatar renovate-bot avatar renovate[bot] avatar vjanoch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

vjanoch ftavilla

thumbor-ts's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Doesn't support slashes in URL

Using setPath with slashes results in broken URLs with escaped slashes as %2F

Thumbor({ serverUrl: 'https://magic.cdn.com', securityKey: 'xxx' })
    .setPath('path/with/slashes.jpg')
    .resize(50, 50)
    .buildUrl()

// https://magic.cdn.com/iOH5jsZdbopShaKWmAHi-XrUZ6U=/50x50/path%2Fwith%2Fslashes.jpg

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency @types/crypto-js to v4.2.2
  • Update dependency eslint-plugin-jest to v27.9.0
  • Update dependency eslint-plugin-prefer-arrow-functions to v3.3.2
  • Update dependency markdownlint-cli to v0.40.0
  • Update actions/checkout action to v4
  • Update actions/setup-node action to v4
  • Update dependency @typescript-eslint/parser to v7
  • Update dependency eslint to v9
  • Update dependency eslint-formatter-pretty to v6
  • Update dependency eslint-plugin-jest to v28
  • Update dependency husky to v9
  • Update dependency lint-staged to v15
  • Update dependency prettier to v3
  • Update github/codeql-action action to v3
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/codeql-analysis.yml
  • actions/checkout v3
  • github/codeql-action v2
  • github/codeql-action v2
  • github/codeql-action v2
.github/workflows/test.yml
  • actions/checkout v3
  • actions/setup-node v3
  • bahmutov/npm-install v1
npm
package.json
  • crypto-js 4.1.1
  • fp-ts 2.13.1
  • list 2.0.19
  • monocle-ts 2.3.13
  • @brettm12345/eslint-config-node 1.0.6
  • @types/crypto-js 4.1.1
  • @types/jest 29.4.0
  • @typescript-eslint/parser 5.49.0
  • bundlesize 0.18.1
  • eslint 8.32.0
  • eslint-formatter-pretty 4.1.0
  • eslint-plugin-jest 27.2.1
  • eslint-plugin-prefer-arrow-functions 3.1.4
  • husky 8.0.3
  • lint-staged 13.1.0
  • markdownlint-cli 0.33.0
  • prettier 2.8.3
  • sort-package-json 2.2.0
  • tsdx 0.14.1
  • typescript 4.9.5

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.