没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
IPX 基于和高性能,安全且易于使用的图像代理。 用法 快速开始 您可以使用ipx命令来启动服务器,方法是: $ npx ipx 程序用法 您可以将IPX用作Connect / Express中间件,也可以直接使用ipx api。 import { createIPX , createIPXMiddleware } from 'ipx' const ipx = createIPX ( /* options */ ) const app = express ( ) app . use ( '/image' , createIPXMiddleware ( ipx ) ) 例子 将格式更改为webp ,并使其他内容与源相同: http://cdn.example.com/static/buffalo.png?format=webp 保持原始格式( png )并将宽度设置为200 :
资源推荐
资源详情
资源评论
收起资源包目录
ipx-main.zip (29个子文件)
ipx-main
.gitignore 58B
nodemon.json 201B
tsconfig.json 255B
README.md 1KB
CHANGELOG.md 5KB
.github
workflows
ci.yml 871B
test
index.test.ts 404B
assets
test.txt 0B
bliss.jpg 718KB
LICENSE 1KB
.eslintrc 62B
package.json 1KB
src
sources
filesystem.ts 967B
http.ts 1KB
index.ts 96B
types.ts 319B
middleware.ts 2KB
handlers
handlers.ts 5KB
utils.ts 229B
index.ts 293B
utils.ts 660B
ipx.ts 3KB
index.ts 122B
cli.ts 373B
renovate.json 37B
jest.config.js 93B
.eslintignore 19B
.editorconfig 207B
yarn.lock 293KB
共 29 条
- 1
资源评论
Matt小特
- 粉丝: 31
- 资源: 4539
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功