How to use the file-saver/dist/FileSaver.saveAs function in file-saver

To help you get started, we’ve selected a few file-saver examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gammafp / atlas-packer-phaser / src / app / pages / animator / animator / animator.component.ts View on Github external
.then(function (content) {
                saveAs(content, `PP3.zip`);
            });
        //     // End generate zip
github gammafp / atlas-packer-phaser / src / app / pages / editor / editor / editor.component.ts View on Github external
.then(function (content) {
                    saveAs(content, `PP3.zip`);
                });
            // End generate zip
github iurii-kyrylenko / hobbies / front-end / src / store / modules / items.js View on Github external
async download ({ rootState, state }) {
    const data = await httpGetItems(rootState, state, {
      term: state[state.selector].filter
    })
    const blob = new Blob(
      [JSON.stringify(data.items, replaceForDownload, 1)],
      { type: 'application/json' })
    saveAs(blob, state.hobby + '.json')
  },

file-saver

An HTML5 saveAs() FileSaver implementation

MIT
Latest version published 4 years ago

Package Health Score

75 / 100
Full package analysis