denosaurs / denosaurs/cache

File processing support

Open
#8 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
50
Forks
7
PR merge metrics
No merged PRs in 30d

Description

This could allow for downloading a for example compressed file and decompressing it before it is cached like described in [esbuild#936](https://github.com/evanw/esbuild/issues/936#issuecomment-818620960).

It should be rather trivial to implement and could look like this:
```ts
const file = await cache("https://example.com/file.zip", (stream: ReadableStream) => {
return stream.pipeThrough(unzipTransformStream);
});
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.