h5-virtual-file

0.1.0 • Public • Published

h5-virtual-file

Virtual file for browser test.

Installation

$ npm install h5-virtual-file

Example

 
var vfile = new VirtualFile(new Blob(['file block content']), 'filename', 20*1024*1024);
 
 
var reader = new FileReader;
reader.onload = function(e)
{
    console.log(e.target.result);
}
 
reader.readAsText(vfile.slice(start, end));
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    2

Package Sidebar

Install

npm i h5-virtual-file

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • bacra