🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

readof

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

readof

读取远程文件到指定路径并提供回调

latest
npmnpm
Version
0.9.5
Version published
Weekly downloads
17
750%
Maintainers
1
Weekly downloads
 
Created
Source

readOnlinePic

读取远程图片或者文件并存储到本地

summary

  • 读取远程文件到指定路径并提供回调
  • @param picUrl string 要读取的图片的路径
  • @param targetPath string 目标存储路径,写完整,类型自行判断,无法根据content-type判断,可伪装
  • @param callback function 回调方法,写入完成或者出错的时候回调 callback(info,error)
  • 回调数据 出错时为空对象{},成功时为 { targetPath:targetPath, picUrl:picUrl }
  • @author yutou
  • @email xinyu198736@gmail.com
  • @blog http://www.html-js.com

#install

npm install readof

#clone

$ git clone https://bitbucket.org/xinyu198736/readonlinefile.git/wiki

#code

    var readOF=require("readof");
         readOF.read(pic,target_path,function(error,data){
            //do something
    });
    

FAQs

Package last updated on 14 Dec 2012

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