🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

solar-core

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solar-core

solar core

latest
npmnpm
Version
4.3.2
Version published
Maintainers
1
Created
Source

Oss

阿里云OSS 辅助工具

resizeAliOss

在oss图片地址上,添加裁剪样式

import { Oss } from 'solar-core'

const url = 'http://ali-oss.shanghai.com/a.png';

// 设定宽度裁剪
const out = Oss.resizeAliOss(url,100);

// 返回 out为: http://ali-oss.shanghai.com/a.png?x-oss-process=image/resize,w_100

renderAliOss

在oss图片链接上添加样式

import { Oss } from 'solar-core'

const url = 'http://ali-oss.shanghai.com/a.png';

const out = Oss.renderAliOss(url,'image/resize,w_100');

// 返回 out为: http://ali-oss.shanghai.com/a.png?x-oss-process=image/resize,w_100

uploadToAliOss

上传图片到阿里OSS,支持:小程序端,与 web端

Keywords

common

FAQs

Package last updated on 20 Jul 2025

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