Skip to content
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

Add util/content module #3

Merged
merged 1 commit into from
Mar 30, 2024
Merged

Add util/content module #3

merged 1 commit into from
Mar 30, 2024

Conversation

gordonmleigh
Copy link
Contributor

Added utility functions for working with asset content:

  • contentLength: returns the byte length of a ContentLike, if possible
  • makeContentStream: turns a ContentLike into a Readable, and checks the integrity if an integrity value is provided

Added utility functions for working with asset content:

- `contentLength`: returns the byte length of a `ContentLike`, if possible
- `makeContentStream`: turns a `ContentLike` into a `Readable`, and checks the integrity if an `integrity` value is provided
@gordonmleigh gordonmleigh merged commit b9e900b into main Mar 30, 2024
1 check passed
@gordonmleigh gordonmleigh deleted the asset-stream branch March 30, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant