daniyelh's profile picture. contemplating...

Danijel Hrvaćanin

@daniyelh

contemplating...

Danijel Hrvaćanin reposteó

zx is a tool by Google that helps you write shell scripts in JavaScript easily ✨ That's a lifesaver given how frequently I forget Bash's syntax! Install: `npm i -g zx` 🚀 🔗 github.com/google/zx

mgechev's tweet image. zx is a tool by Google that helps you write shell scripts in JavaScript easily ✨

That's a lifesaver given how frequently I forget Bash's syntax!

Install: `npm i -g zx` 🚀

🔗 github.com/google/zx

Danijel Hrvaćanin reposteó

Today we’re excited to bring Node.js back to its roots - the browser! Together with @googlechrome and @vercel, we're enabling a new type of development and debugging experience that was not possible before: 🧵 blog.stackblitz.com/posts/introduc…


Danijel Hrvaćanin reposteó

Holy cow zx from Google is game changing! It lets you write shell scripts with Node.js without the hassle github.com/google/zx

giuseppegurgone's tweet image. Holy cow zx from Google is game changing! It lets you write shell scripts with Node.js without the hassle github.com/google/zx

Danijel Hrvaćanin reposteó

Ok... now that I got some attention, here's a thread on why you SHOULD NOT DO this. At least not for web servers or other use cases where you need concurrent processing! 👇

Did you know that you can use `on` to turn an event emitter into an async iterator in #NodeJS? Need an example? How about doing a `for await...of` to handle incoming #HTTP requests a-là-Deno? 🙃

loige's tweet image. Did you know that you can use `on` to turn an event emitter into an async iterator in #NodeJS?

Need an example? How about doing a `for await...of` to handle incoming #HTTP requests a-là-Deno? 🙃


Danijel Hrvaćanin reposteó

Tip: You can name capture groups for Regular Expressions in JavaScript. Define a named capture in angle brackets <> and they get returned under .groups.

addyosmani's tweet image. Tip: You can name capture groups for Regular Expressions in JavaScript. Define a named capture in angle brackets &amp;lt;&amp;gt; and they get returned under .groups.

Danijel Hrvaćanin reposteó

Github1s is really nice. Just add "1s" after "github" when viewing code on github.com and VS Code loads up instantly:


Danijel Hrvaćanin reposteó

Google currently experiencing a widespread outage affecting Gmail, YouTube, Google Docs, and more

tomwarren's tweet image. Google currently experiencing a widespread outage affecting Gmail, YouTube, Google Docs, and more
tomwarren's tweet image. Google currently experiencing a widespread outage affecting Gmail, YouTube, Google Docs, and more

Loading...

Something went wrong.


Something went wrong.