http-file-push

1.0.1 • Public • Published

http-file-push

http协议文件传输

环境

服务端接收器

使用

服务器开启接收端口

# default port 8999, use `fisrcv <port>` change port
fisrcv `port`

客户端发送文件

var pushFiles = require('http-file-push');
var deploy = {
  "receiver": '服务地址',
  "to": '目标地址'
};

/**
 * @param deploy 发布信息
 * @param dir 发布目录
 */
pushFiles(deploy, 'build');

参考

Readme

Keywords

none

Package Sidebar

Install

npm i http-file-push

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • chenjunxyf