-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5fe22d0
commit 9607dfb
Showing
10 changed files
with
33 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
export type { ImageType, ImageResult } from './types.ts' | ||
export type { ImageType, ImageResult } from './types.d.ts' | ||
|
||
export { default as getSizeFromAsyncIterable } from './from/AsyncIterable.ts' | ||
export { default as getSizeFromIterable } from './from/Iterable.ts' | ||
export { default as getSizeFromReadableStream } from './from/ReadableStream.ts' | ||
export { default as getSizeFromUint8Array } from './from/Uint8Array.ts' | ||
export { default as getSizeFromURL } from './from/URL.ts' | ||
export { default as getType } from './getType.js' | ||
export { default as getSizeFromAsyncIterable } from './from/AsyncIterable.d.ts' | ||
export { default as getSizeFromIterable } from './from/Iterable.d.ts' | ||
export { default as getSizeFromReadableStream } from './from/ReadableStream.d.ts' | ||
export { default as getSizeFromUint8Array } from './from/Uint8Array.d.ts' | ||
export { default as getSizeFromURL } from './from/URL.d.ts' | ||
export { default as getType } from './getType.d.ts' | ||
|
||
export { types } from './types.ts' | ||
export { types } from './types.d.ts' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/package.json", | ||
"name": "@astropub/get-size.test", | ||
"type": "module", | ||
"dependencies": { | ||
"@astropub/get-size": "*" | ||
}, | ||
"private": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { getSizeFromReadableStream } from '@astropub/get-size' | ||
|
||
const blob = new Blob([], { type: 'text/css' }) | ||
|
||
console.log(await getSizeFromReadableStream(blob.stream())) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters