-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use node native Blob #1159
Comments
Hi. i'm aware of it already There is some characters that makes native NodeJS blob unpleasant.
b/c of point 2 and 3 this essentially renders Trust me I would like nothing more than everyone start using
Then there is also the hole backward compatibility, they introduced it in v15.7 and got some tiny stuff wrong but got fixed later |
closing as dupe of #1079 |
|
Yes, we could but i'm a bit sceptical about it. it could be possible.
import buffer from 'node:buffer'
import FetchBlob from 'fetch-blob'
import blobFrom from 'fetch-blob/from.js'
const fsChunk = blobFrom('./package.json')
const nativeChunk = new buffer.Blob(['Hello world'])
new FetchBlob([ fsChunk, nativeChunk ]) The same is not true for Guess that fetch-blob will become like safe-buffer once was. |
Hi.
You can use native nodejs Blob class instead of your custom Blob.
https://nodejs.org/api/buffer.html#buffer_class_blob
The text was updated successfully, but these errors were encountered: