efs-js
v0.1.1
Published
EFS Javascript SDK
Downloads
9
Readme
EFS Javascript Client
安装
npm install efs-js
查看 API 文档
npm run jsdoc
单元测试
npm run test
示例代码
import EfsClient from "efs"
let clinet = new EfsClient("http://efs/api", "my-app-id", {
accessToken: function() { return session["accessToken"] }
});
client.upload(document.getElementById("fileInput").files[0]).then(fileId => {
client.status(fileId).then(fileStatus => {
console.log(fileStatus);
});
});