Skip to content

eelokets/array-buffer-to-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

array-buffer-to-data

NPM version Bower version

DESCRIPTION:

Converting array buffer to json/string/base64. Including works with Cyrillic.

INSTALL:

npm:

npm i array-buffer-to-data

bower:

bower i array-buffer-to-data

USAGE:

Angular:
  • Include src/angular/array-buffer-to-data.js
  • Include array-buffer-to-data as a module in your app.
  • In the right place, specify the dependency on factory arrayBufferToData
angular.module('app', ['array-buffer-to-data']);

app.controller('Ctrl', ['arrayBufferToData', function(arrayBufferToData) {
    arrayBufferToData.toJSON(ArrayBuffer);
}]);
Native:
  • Include src/native/array-buffer-to-data.js
arrayBufferToData.toJSON(ArrayBuffer);
Nodejs:
  • Include src/native/array-buffer-to-data.js
var arrayBufferToData = require('array-buffer-to-data');

arrayBufferToData.toJSON(ArrayBuffer);

About

Converting array buffer to json/string/base64

Resources

Stars

Watchers

Forks

Packages

No packages published