question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@matechs/node extensions wishlist

See original GitHub issue

There’s been talk about a NodeJS library for @matechs. Using this issue to document some feature ideas:

Ideas

  • File streams; reading and writing streams like in ZIO streams. ZStream.fromFile https://youtu.be/OiuKbpMOKsc 18:50
  • S.fromObjectReadStream mentioned in Slack.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
qlonikcommented, Jun 19, 2020

It would be nice to see fs methods wrapped into effects

0reactions
patrozacommented, Apr 28, 2021

Sorry, I misunderstood that we were talking about stream based fs methods only. For things like move/copy/delete/writeFile/readFile I’m not sure that stream based api is needed. I was thinking that even providing sync/async effect wrappers would be nice. Since effectify doesn’t handle overloads very well, and often manual wrappers need to be written.

But about stream based fs wrappers, I agree that in some cases it would be convenient to have stream based api. For example there is a handful of functions which either return or accept Node Streams, so those could probably be a good candidate to try how can we implement the support. Things like createReadStream and createWriteStream. There are also methods which return Buffer, which could potentially be a stream of buffer chunks (I dont know zio, but it seems like this is similar to their fs streams? Correct me if I’m wrong here).

What do you think @patroza ?

I’m totally for Effect and maybe even Sync wrappers. I keep repeating them over and over in my projects. Maybe good we start somewhere and extend as we find more usages?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add to WishList.com Button
WishList.com - A button for saving wishes from any website to your wish list at WishList.com. What's your WishList? Collect & share what...
Read more >
4 Extensions To Create Killer Wishlists -- That Aren't Amazon!
Here are a few browser extensions that you non-Amazon shoppers can check out for creating your own wish and gift lists.
Read more >
Best Multiple Wishlist Extension for Magento 2 - CreativeMinds
The Magento 2 Multiple Wishlist extension allows customers to create and manage multiple wishlists. Help users organize their shopping and ...
Read more >
8 Best WooCommerce Wishlist Plugins for Your Store - Kinsta
WooCommerce gives users the ability to create wishlists when needed. Here are some of the best WooCommerce Wishlist plugins available.
Read more >
Flexible Wishlist Addon - Analytics & Emails - WP Desk
Flexible Wishlist Addon - Analytics and Emails: track wishlist content, analyze stock ... This wishlist extension is for you if you want to:....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found