Node.js

deno_land,
@deno_land@fosstodon.org avatar

Have you seen by Examples?

They're now in our documentation to make them easier to find. There's a whole collection of annotated examples on how use Deno. Take them as-is or use them as a reference when you're developing.

https://docs.deno.com/examples

deno_land,
@deno_land@fosstodon.org avatar

If there's an example you'd like to see, drop us an issue, or if you have an example you'd like to contribute, we'd love to have it!

https://github.com/denoland/deno-docs?tab=readme-ov-file#examples

deno_land,
@deno_land@fosstodon.org avatar

🎂️

vintprox,
@vintprox@techhub.social avatar

Happy birthday, @deno_land!

deno_land,
@deno_land@fosstodon.org avatar

Working on a new JavaScript package 📦? Here are some best practices on creating excellent documentation 👇

https://deno.com/blog/document-javascript-package

teleclimber,
@teleclimber@social.tchncs.de avatar

Blog Post: I wrote about my struggles trying to open up outgoing net requests in a safe way for apps using 's permissions. It didn't go well 😭

https://olivierforget.net/blog/2024/dropserver-net-requests/

tanepiper,
@tanepiper@tane.codes avatar

Here's me trying to make sure we ship as secure as possible software, and there's someone who doesn't know how to use an npm ignore file to not ship their shitty docker files in their modules

tanepiper,
@tanepiper@tane.codes avatar

So many projects have a lot of crap in node_modules that are really not needed when deploying apps - SO MANY DOT FILES. I built a script that will clear them all out recursively, just leaving required files. Will probably add *.ts when creating containers.

A screenshot showing that over 4300 files will be deleted and clean up 27Mb of files
A screenshot showing a list of files in node_modules including a lot of dot files

ollicle,
@ollicle@mastodon.social avatar

@tanepiper I would enjoy the irony if one configured this script with a dot file of its own.

.undot

deflockcom,
@deflockcom@mastodon.social avatar

Anyone have set up as on a ?

(Work on it actually to move all my services on a fedora coreos node)

ironicbadger,
@ironicbadger@techhub.social avatar

@deflockcom should be possible with user space networking. Lmk

arnelson,
@arnelson@fosstodon.org avatar

I've been thinking about restarting work on #Tapir. Development stopped because I hit a wall with the database system. Writing Tapir in #Deno was a long sequence of yak-shaving without much payoff; most of my dev time was spent implementing JSON-LD, Web Signatures, and a database layer that should have been a library if Deno had better Node compatibility at the time.

arnelson,
@arnelson@fosstodon.org avatar

It's been a while, and the Deno ecosystem has improved a lot. Drizzle looks promising as an ORM layer (better than my hacked-together one), and more Fediverse projects in Deno are popping up ( looks really cool!). But I'm rethinking Deno.

There were 3 things that drew me to Deno initially:

  • Ease of install (just run the app from a URL)
  • Cloud platforms (Deno Deploy w/ Deno KV)
  • JavaScript (I know the language, and it has a big ecosystem)

But all 3 didn't work out the way I planned.

thisismissem,
@thisismissem@hachyderm.io avatar

@arnelson have recently been using Drizzle and tbh, I don't know if I'd recommend it.

hongminhee,
@hongminhee@todon.eu avatar

#Fedify's tutorial, which previously assumed you were using #Deno, can now be followed using #Node.js and #Bun! (What is Fedify? It's an ActivityPub server framework.)

However, they are written for Fedify 0.8.0, which hasn't been released yet. You can test it with the pre-release version, 0.8.0-dev.164, though.

https://unstable.fedify.dev/tutorial

#fedidev #ActivityPub

deno_land,
@deno_land@fosstodon.org avatar

1.43 is released!

🚀 Much faster language server
🐢 Key improvements in node:worker_threads and node:vm
💾 Snappy startups with V8 code caching
☁️ New "deno serve" subcommand
🚨 Updates regarding Deno 2

And more - details in the release notes
https://deno.com/blog/v1.43

cdoremus,
@cdoremus@hachyderm.io avatar
nebyoolae,
@nebyoolae@masto.neb.host avatar

OK, I should really change all my projects that use / to use . If you barely use Node then it's probably not worth it, but for a webdev it now seems like a no-brainer.

zurmikopa,
@zurmikopa@mastodon.gamedev.place avatar

@nebyoolae I'm just not all that familiar with pnpm and was wondering in which situations it was worthwhile to switch and why.

nebyoolae,
@nebyoolae@masto.neb.host avatar

@zurmikopa it seems like in any situation where you have multiple node_modules directories pnpm is a no-brainer, because it reuses existing modules instead of having duplicates.

jbzfn,
@jbzfn@mastodon.social avatar
hongminhee,
@hongminhee@todon.eu avatar

Did you know? #Deno supports styling in console.log(), just like browsers.

https://developer.mozilla.org/en-US/docs/Web/API/console#styling_console_output

muhdiekuh, German
@muhdiekuh@ruhr.social avatar

Considering that every year we have a new ambitious replacement for in the JavaScript world, @naderman and @seldaek apparently did a very good job when building and maintaining for . Thanks a lot to you two and everyone else involved.

linc,
@linc@phpc.social avatar

@muhdiekuh Agreed! I also like to believe the ecosystem aged out of the "prove how clever & right you are" phase. 😅 We're all out here like,
"amazing, thank you, now I can work faster" not "huh, bet I can do better, hold my beer".

deno_land,
@deno_land@fosstodon.org avatar

We recently launched JSR, a new open source package registry for all of JavaScript (and TypeScript!)

In this post, Luca Casonato dives into how we built JSR to be:
🏅 reliable (100% SLO)
😀 simple to use for publishers and consumers
📦 compatible with NPM

https://deno.com/blog/how-we-built-jsr

  • All
  • Subscribed
  • Moderated
  • Favorites
  • node
  • modclub
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • everett
  • Youngstown
  • mdbf
  • Durango
  • slotface
  • rosin
  • thenastyranch
  • kavyap
  • GTA5RPClips
  • cubers
  • JUstTest
  • tester
  • osvaldo12
  • tacticalgear
  • ethstaker
  • ngwrru68w68
  • khanakhh
  • Leos
  • normalnudes
  • cisconetworking
  • provamag3
  • megavids
  • anitta
  • lostlight
  • All magazines