Skip to content

npm-ashish/savior.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

savior.js

A JavaScript utility to save base64 data as a file on local disc. This supports more than 650+ file types.

installation

npm install savior.js --save

usage

import { savior } from 'savior.js';

// byteData - base64 data to be saved as a file
// fileName - filename you want it to be saved as
// fileExtension - document type
savior(byteData, fileName, fileExtension);

URLs

@NPM: https://www.npmjs.com/package/savior.js

Demo: https://npm-ashish.github.io/savior.js/demo/