efs-js

0.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i efs-js

Weekly Downloads

4

Version

0.1.1

License

MIT

Unpacked Size

1.5 MB

Total Files

40

Last publish

Collaborators

  • gz.ericlee