Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/next-blob2url
Get blob url from blob.
https://github.com/afeiship/next-blob2url
b64 base64 binary blob next stream url
Last synced: 22 days ago
JSON representation
Get blob url from blob.
- Host: GitHub
- URL: https://github.com/afeiship/next-blob2url
- Owner: afeiship
- License: mit
- Created: 2021-05-13T01:33:02.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-13T01:50:09.000Z (over 3 years ago)
- Last Synced: 2024-11-15T08:04:42.345Z (about 2 months ago)
- Topics: b64, base64, binary, blob, next, stream, url
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-blob2url
> Get blob url from blob.[![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-blob2url
```## usage
```js
import '@jswork/next-blob2url';nx.blob2url(blob);
// http://localhost:5000/500e570a-ad09-4921-a4a3-6c72cc84626e
``````html
fetch('./ava.jpg').then(res => res.blob()).then(res => {
const url = nx.blob2url(res);
document.getElementById('img').src = nx.blob2url(res)
console.log(res, url);
})```
## license
Code released under [the MIT license](https://github.com/afeiship/next-blob2url/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-blob2url
[version-url]: https://npmjs.org/package/@jswork/next-blob2url[license-image]: https://img.shields.io/npm/l/@jswork/next-blob2url
[license-url]: https://github.com/afeiship/next-blob2url/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-blob2url
[size-url]: https://github.com/afeiship/next-blob2url/blob/master/dist/next-blob2url.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-blob2url
[download-url]: https://www.npmjs.com/package/@jswork/next-blob2url