Echo JS 0.11.0

<~>

alonronin comments

alonronin 2 days ago. link 1 point
I think we should use Async Iterators for this nowdays:

const getHash = async path => {
  const hash = crypto.createHash('sha256');
  const rs = fs.createReadStream(path);

  for await (const chunk of rs) {
    hash.update(chunk);
  }

  return hash.digest('hex');
}
alonronin 532 days ago. link 2 points
Sorry for my ignorance, but I couldn't figure out what it does. Would you mind explaining it to me?
alonronin 583 days ago. link 2 points
yep, you are correct, I confused with string.includes :-)
[more]