All Projects → forsigner → file-base64

forsigner / file-base64

Licence: other
Encode or Decode base64 use stream

Programming Languages

javascript
184084 projects - #8 most used programming language

file-base64 Build Status NPM Version

  • Encode a file to a base64 string
  • Dncode a base64 string to a file

Install

$ npm install file-base64 --save

Usage

var base64 = require('file-base64');

base64.encode('text.txt', function(err, base64String) {
  console.log(base64String);
});

var base64String = 'swesh523sfsfgwg';
base64.decode(base64String, 'text.new.txt' function(err, output) {
  console.log('success');
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].