Echo JS 0.11.0

<~>

alonronin comments

alonronin 196 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 726 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 777 days ago. link 2 points
yep, you are correct, I confused with string.includes :-)
[more]