crestfall-sh / modules

Crestfall Modules
MIT License
5 stars 0 forks source link

uwu: improvements #8

Open joshxyzhimself opened 2 years ago

joshxyzhimself commented 2 years ago

response streams

// maybe this
response.stream = fs.createReadStream(file_path);

// if converting images to mozjpeg format
response.stream = response.stream.pipe(sharp().jpeg({ mozjpeg: true }));

// if compressing with gzip
response.stream = response.stream.pipe(zlib.createGzip());

// if compressing with brotli
response.stream = response.stream.pipe(zlib.createBrotliCompress());

references

joshxyzhimself commented 2 years ago

use getProxiedRemoteAddressAsText

joshxyzhimself commented 2 years ago

resumable file uploads

joshxyzhimself commented 2 years ago

Auto-generated PostgreSQL REST API Routes

Example

References

joshxyzhimself commented 2 years ago

note that table select now returns items, count, and explain

can also add limit and offset for complete pagination purposes

joshxyzhimself commented 2 years ago

extracting all headers

shipped at https://github.com/joshxyzhimself/modules/commit/86f32e8bfcce560c1884fd23fa45cbf20522847f

joshxyzhimself commented 2 years ago

headers