npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nuke-biz-upload-image

v0.0.3

Published

upload-image

Downloads

5

Readme

以下是标准 README 的内容

upload-image

  • category: 功能
  • chinese: 图片上传&裁剪功能
  • type: 功能组件

nuke-biz-upload-image@ALINPM nuke-biz-upload-image@ALINPM

设计思路

图片选择上传&裁剪设计

客户端能力接口

选择文件 (selectFiles)

裁剪图片 (cropImage)

保存文件 (saveFile)

上传文件到cdn (uploadFilesToCDN)

API

参数类型 | 参数名称 | 示范 | 描述 -----|-----|-----|----- string | actions| 0,1,2| 文件源: 0拍照 1相册 2云盘 int | limit | 5| 可选择文件最大数 enum | filetype | 1| 文件过滤 IMG(1), DOC(2), TXT(3), MUSIC(4), VIDEO(5), ZIP(6); 注意:只对云盘进行过滤 boolean | crop |true/false | 是否需要裁剪 int | initWidth |750 | 裁剪框初始化宽度,单位:像素 int | initHeight |456 | 裁剪框初始化高度,单位:像素 string | fixedRatio |fixedSize | 固定拉伸比例,可选值: fixedRatio:必须传initWidth和initHeight,按照初始化宽高拉伸; fixedSize: 必须传initWidth和initHeight(固定大小,不能拉伸) string | postfix |png | 文件后缀名 string | bizCode |qnwd | 业务参数,上传文件之前需要在media center申请一个biz code以标识自己的业务点,方便对本业务的图片进行管理,申请biz code请联系 慕楼。接入文档:http://gitlab.alibaba-inc.com/picturecenter/wikipedia/blob/master/%E6%8E%A5%E5%85%A5%E6%96%87%E6%A1%A3.md

扫码体验