Module
Node.Buffer.Blob
- Package
- purescript-node-buffer-blob
- Repository
- purescript-node/purescript-node-buffer-blob
#BlobOptions Source
type BlobOptions = { endings :: BlobEnding, type :: MediaType }
#fromArrayBuffers Source
fromArrayBuffers :: NonEmptyArray ArrayBuffer -> Maybe BlobOptions -> Blob
Creates a new Blob from one ore more ArrayBuffer
s
#fromBlobs Source
fromBlobs :: NonEmptyArray Blob -> Maybe BlobOptions -> Blob
Creates a new Blob from one ore more Blob
s
#fromDataView Source
fromDataView :: NonEmptyArray DataView -> Maybe BlobOptions -> Blob
Creates a new Blob from one ore more DataView
s
#fromStrings Source
fromStrings :: NonEmptyArray String -> Maybe BlobOptions -> Blob
Creates a new Blob from one or more strings
#stream Source
stream :: Blob -> Effect (ReadableStream Uint8Array)
Returns a new ReadableStream that allows the content of the Blob to be read.
#toArrayBuffer Source
toArrayBuffer :: Blob -> Effect (Promise ArrayBuffer)
Copies the data in the Blob to a new JS ArrayBuffer
- Modules
- Node.
Buffer. Blob