dodo-upload
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

dodo-upload

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

image

终端使用

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

API 使用

  1. 安装依赖:npm install dodo-upload
  2. 开始使用
    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}`)
    })

Package Sidebar

Install

npm i dodo-upload

Weekly Downloads

0

Version

1.0.10

License

ISC

Unpacked Size

18.5 kB

Total Files

7

Last publish

Collaborators

  • oyps