npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

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

install

npm i h5-virtual-file

Downloadsweekly downloads

2

version

0.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability