New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

dodo-upload

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dodo-upload

DoDo 文件上传获取直链工具

latest
Source
npmnpm
Version
1.0.10
Version published
Maintainers
1
Created
Source

dodo-upload

DoDo 文件上传获取文件直链工具

image

终端使用

  • 安装 Node.js
  • 全局安装:npm install -g dodo-upload
  • 终端(例如 CMD)执行 dodo-upload 命令
  • 根据程序提示进行操作

API 使用

  • 安装依赖:npm install dodo-upload
  • 开始使用
    import DodoUpload from 'dodo-upload'
    
    const token = '你的 token'
    const uid = '你的 uid'
    const filePath = '需要上传的文件路径'
    DodoUpload.run(filePath, token, uid).then(result => {
        const { url, filename } = result
        console.log(`文件名称:${filename}`)
        console.log(`文件直链:${url}`)
    })
    

Keywords

download

FAQs

Package last updated on 09 May 2024

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