Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    browsersavefilepublic

    browser support

    #browsersavefile ##browsersavefile(fileName, blob) browsersavefile will take a file name and a Blob object. It will then download the file from the users browser.

    Params

    • fileName String - The file name of the file you'd like to save as
    • blob Blob - File you'd like to save out

    Example

    var browsersavefile = require( 'browsersavefile' );
     
    var someHTML = [ '<div>HELLO WORLD</div>' ],
        blobData = new Blob( someHTML, {type : 'text/html'});
        
    browsersavefile( 'my file', blobData );

    install

    npm i browsersavefile

    Downloadslast 7 days

    1

    version

    0.0.6

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar