https://github.com/afeiship/next-arraybuffer2url
Array buffer to blob url.
https://github.com/afeiship/next-arraybuffer2url
array arraybuffer blob buffer next url
Last synced: 8 months ago
JSON representation
Array buffer to blob url.
- Host: GitHub
- URL: https://github.com/afeiship/next-arraybuffer2url
- Owner: afeiship
- License: mit
- Created: 2021-07-09T01:47:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-09T01:58:51.000Z (over 4 years ago)
- Last Synced: 2025-03-14T18:45:51.054Z (9 months ago)
- Topics: array, arraybuffer, blob, buffer, next, url
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-arraybuffer2url
> Array buffer to blob url.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```bash
npm install -S @jswork/next-arraybuffer2url
```
## usage
```js
import '@jswork/next-arraybuffer2url';
const xhrOverride = new XMLHttpRequest();
xhrOverride.responseType = 'arraybuffer';
$.ajax({
url: '/url/of/your/binary/data',
method: 'GET',
xhr: function() {
return xhrOverride;
}
}).then(function (responseData) {
const url = nx.arraybuffer2url(responseData);
//
});
```
## license
Code released under [the MIT license](https://github.com/afeiship/next-arraybuffer2url/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/next-arraybuffer2url
[version-url]: https://npmjs.org/package/@jswork/next-arraybuffer2url
[license-image]: https://img.shields.io/npm/l/@jswork/next-arraybuffer2url
[license-url]: https://github.com/afeiship/next-arraybuffer2url/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-arraybuffer2url
[size-url]: https://github.com/afeiship/next-arraybuffer2url/blob/master/dist/next-arraybuffer2url.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/next-arraybuffer2url
[download-url]: https://www.npmjs.com/package/@jswork/next-arraybuffer2url