Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@youzanyun-fe/colud-fe-package-utils

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@youzanyun-fe/colud-fe-package-utils

## 函数库安装

  • 1.0.0-beta.4
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by500%
Maintainers
3
Weekly downloads
 
Created
Source

colud-fe-package-utils

函数库安装

npm install --save colud-fe-package-utils

函数库使用

业务层及二方基础库,建议使用按需引入的模式,使用函数库。 使用方法类似于fullfillImage,需要使用哪个函数,只引用当前函数。

// 图片url格式转换方法
import fullfillImage from 'colud-fe-package-utils/url/fullfillImage';

result = fullfillImage('data: //img.yzcdn.cn/upload_files/2017/06/27/Fhgkb5fVQ5dM9DjS70lt-Ie5hnGb.jpg!small.jpg');

函数库模块

目前有 2 个跨平台的通用模块:

跨平台通用模块

  1. performance与优化性能相关的函数,如 debounce,throttle
  2. url与 URL 相关的函数

FAQs

Package last updated on 22 Dec 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc