New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

custom-test-util

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

custom-test-util

1. 安装 ``` npm i custom-test-util ``` 2. 使用 ``` import {urlToBase64} from 'custom-test-util' /* url: 图片地址 type: image/*, 图片类型 callback(base64): 转化后的数据是base64参数 */ urlToBase64(url, type, callback) ```

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

测试npm发包流程 --- 图片转base64

  1. 安装
npm i custom-test-util
  1. 使用
import {urlToBase64} from 'custom-test-util'
/*
  url: 图片地址
  type: image/*, 图片类型
  callback(base64): 转化后的数据是base64参数
*/
urlToBase64(url, type, callback)

FAQs

Package last updated on 06 Apr 2022

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