0.1.1 • Published 6 years ago

efs-js v0.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

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); 
    });
});