Masthash

#NodeJS

Thomas Cherryhomes
17 hours ago

For anyone who can code a simple turn-based network game server:

The #FujiNet project needs one example game server:

* Game of Poker (start with 5 card stud)
* 8 Players max
* Connect over HTTPS
* GET game status in JSON
* POST your move in JSON
* Have logic to enter and exit game.
* All game logic handled on server, client is just display.
* Post a chat msg

Doesn't matter the language, #nodejs, #python, whatever. Ping back, if you can do it. #retrogaming #retrocomputing

Liran Tal :verified:
17 hours ago

Woah, so, I'm publishing a new book! 🚀🎁
PREORDER: https://nodejs-secure-coding.lemonsqueezy.com/checkout?cart=83325ac9-7ea9-498b-adfd-21dd57a3470b

This book is going to teach you about Command Injection vulnerabilities in Node.js

It's Friday so we can raise a toast to celebrate and use the LAUNCHYAY25OFF coupon gift when you check out. Thanks in advance for the support!

#security #vulnerability #cve #nodejs #books

Xandor Schiefer
22 hours ago

Not long ago a gave a talk at NodeJS One Africa about Functional Programming in JavaScript. It's a gentle introduction to the topic. If you've ever been curious, have a look: https://youtu.be/_FVK0mD76Ds
#javascript #programming #africa #nodejs #functionalprogramming

Inautilo
1 day ago

#Development #Findings
One in two new npm packages is SEO spam right now · Just README files with links to various malicious websites https://ilo.im/120gj2

_____
#Npm #PackageManager #WebDevelopment #WebDev #JavaScript #NodeJS #Security #Malware #Spam

Ain Tohvri
2 days ago

#NodeJS v16.20.0 (LTS) out yesterday, upgrade! https://nodejs.org/en/blog/release/v16.20.0 #JavaScript

DocRekd
2 days ago

@felixthehat What can runjs.app/ do that,say,the #browser #devtools or the #nodejs #repl cannot beside top level await and imports from?

Webdev Weekly
2 days ago

NestJS Boilerplate for fast development of REST API with most of the popular features included of the box: production ready and supported by Brocoders

https://github.com/brocoders/nestjs-boilerplate

Discussions: https://discu.eu/q/https://github.com/brocoders/nestjs-boilerplate

#javascript #nodejs #programming #webdev

Mx. Aria Stewart
3 days ago

Can an http.ClientRequest ever emit both "response" and "error"? (assuming nothing external is emitting events on it)

#nodejs

Astra Kernel :verified:
3 days ago

🪲 VSCode hack shows how supply chain attacks can extend to other software development tools

👉 Extensions are developed in Node.js
👉 Malicious npm packages to extensions
👉 Infected extensions & Auto update

https://www.reversinglabs.com/blog/vs-code-ide-hack-how-supply-chain-attacks-can-proliferate-between-developer-ecosystems

#vscode #infosec #programming #nodejs #npm

François Zaninotto
3 days ago

Deno gets package.json support: great for #NodeJS interoperability! #TS https://deno.com/blog/package-json-support

Jeremiah Lee
3 days ago

Oh happy day, mama! #TailwindCSS finally supports ESM!

Friendly reminder that the current and all long term support versions (18.x, 16.x, 14.x) of #NodeJS support ESM. You should be removing CJS everywhere.

https://tailwindcss.com/blog/tailwindcss-v3-3#esm-and-typescript-support

Kevin Brill
4 days ago

Trying to squeeze my brain on AsyncLocalStorage in #nodejs for a mature and complication codebase.

Been wrestling for a while trying to determine why context keeps getting lost. But I have a feeling that it's probably due to the combination of promises and async/await that make up the call stack when making REST calls.

Webdev Weekly
4 days ago
Ruby Weekly
4 days ago

There is just one repo written in Ruby that allows access to a mysql database using http protocol. Since the repo is outdated, how do I go about building something similar in node.js?

https://github.com/adamcooke/mysql-http-api

Discussions: https://discu.eu/q/https://github.com/adamcooke/mysql-http-api

#javascript #nodejs #programming #ruby #webdev

David Anson
5 days ago

Updated: #markdownlint v0.28.0, #Markdown #linting library for #NodeJS

- Introduce `micromark` parser for better positional data (internal only)
- Use `micromark` in MD013/MD033/MD034/MD035/MD038/MD044/MD052/MD053
- Simplify file-based test cases
- Unify browser script for demo
- Update dependencies

https://github.com/DavidAnson/markdownlint

Webdev Weekly
5 days ago

Web Development recap for week 12/2023

https://discu.eu/weekly/webdev/2023/12/

#css #javascript #nodejs #programming #typescript #webassembly #webdev

Get RSS feeds and support this bot with the premium plan: https://discu.eu/premium

Adam Nelson
6 days ago

New Spartan Schema release (v1.1), with actual detailed error messages! You can now use `assertMatchesSchema` to throw an exception on a validation failure, and the exception will contain the full JSON and the exact locations and details of every schema error.

https://deno.land/x/spartanschema@v1.1.1

#JavaScript #Typescript #NodeJS #Deno #JSON

Verwechslungsgefährte
6 days ago

htmx gives PHP a meaning again.

#NodeJS #lamp #web #php #htmx https://htmx.org

spazzpp2
6 days ago

htmx gives PHP a meaning again.

#NodeJS #lamp #web #php #htmx https://htmx.org

James King
1 week ago

Time travel debugging! Click on the link under a console.log, and it rewinds time and throws down a breakpoint.

https://www.youtube.com/watch?v=VQEVZacjt40

#gamedev #typescript #webgl #nodejs #tabletop #screenshotsaturday

Molly Draven
1 week ago

👋

Hello, #TypeScript famity. Can you please point me to a good, working example of how to declare #NodeJS package subpath exports, and then import the same in the the package?

I believe the example I saw what so that the tests could import the API, but the API would not be able to import the tests in error.

I'm getting everyone's favorite "Cannot find module" error 🙏

kalvn
1 week ago

GitHub - drizzle-team/drizzle-orm: TypeScript ORM for SQL
https://github.com/drizzle-team/drizzle-orm

Un query builder pour Node.js. L'outil se définit comme un ORM mais de ce que j'ai pu lire, ça ressemble beaucoup plus à un query builder. Une alternative à Knex.js en somme.

#orm #sql #javascript #nodejs #libhttps://links.kalvn.net/shaare/6yQghA

Eph Baum
1 week ago

Anyone out there #hiring for mid-level #SoftwareEngineers with experience with #nodejs, #dotNET, and #PHP? I know someone that might be on the market that I would love to recommend 😃

Christian Grasser
1 week ago

I love #coding on #linux!
For example the installation of node.js with the nvm installer.
I need a special version of node.js and I type nvm install 14.8.0 in the terminal!
That's it.

On #windows I always needed to deinstall the current version. Download the older version from the web and install it via msi installer.

#nodejs #node #nvm #shell

Mathieu Poussin
1 week ago

Any recommendation for a managed service to host internal pypi/gem/nuget/rpm/npm packages ? :)
#devops #sre #python #ruby #linux #dotnet #nodejs

Ain Tohvri
1 week ago

Turns out #NodeJS infrastructure relies on #Cloudflare, from the incident report published yesterday. https://nodejs.org/en/blog/announcements/node-js-march-17-incident #SRE #EdgeComputing

I may or may not have used #ChatGPT to write #unittest with #javascript due to utter laziness, and it just wrote just like what I had in mind 😆

#nodejs

reverentgeek
1 week ago

I'm coding live today at 2:00 PM ET! Come hang out and learn with me as we build a trivia game in Node.js using Vue, Tailwind CSS, and socket.io! #AHOTLive #streaming #nodejs #websockets #javascript

All Hands On Tech Live developer stream Thursdays at 11:00 AM PT/2:00 PM ET with David Neal, Pluralsight Principal Developer Advocate
Alec Perkins
1 week ago

Oof why have one way to do modules when you can have two incongruent ways? Thankfully found some good examples for how to maximize compatibility, but this is still pretty obnoxious. #NodeJS

Blain Smith
1 week ago

I wrote some #nodejs with #expressjs for my DB class project tonight. I haven't used this tech in many many years. The async/await API makes things much much less terrible.

Dennis Faucher :donor: :mastodon:
1 week ago

#NodeJS may be harder to exit than vi :)

❯❯ node
Welcome to Node.js v19.7.0.
Type ".help" for more information.
> quit
Uncaught ReferenceError: quit is not defined
> exit
Uncaught ReferenceError: exit is not defined
> exit()
Uncaught ReferenceError: exit is not defined
> process.exit()

François Zaninotto
1 week ago

GraphJin: Create a #GraphQL API on top of an existing relational database. Leverages forign keys to allow embeds & aggregations inside queries. Server libraries available in #NodeJS and
https://graphjin.com/

Matt Roberts
1 week ago

I’m #hiring software engineers in Dublin. Join me at DocuSign to build Smarter, Easier, Trusted Agreements

#nodejs #typescript #docker #kubernetes #azure #devops #microservices #observability #opensource #jobs

Know anyone who might be interested?

Backend Engineer.
https://careers.docusign.com/jobs/21614?lang=en-us

Platform Engineer.
https://careers.docusign.com/jobs/21616?lang=en-us

me·ta·phil, der
1 week ago

Hmm, there's an #ICS Event #Import‍er tool for @mobilizon – but only in planning phase, yet.

https://framagit.org/framasoft/joinmobilizon/event-importer

anyone willing to contribute to a useful tool for #fedi? #DecentralizeAllTheThings #FediDev #NodeJS

Lobsters
2 weeks ago
Juan Luis
2 weeks ago

This week I'm learning JavaScript, Node.js, TypeScript... the hard way: https://github.com/orgs/executablebooks/discussions/981

#til #projects #noob #nodejs

tbeseda
2 weeks ago

If you usually build with #NodeJS, what compiled language are you enjoying (or looking to pick up)?

Other than Rust. I think it would dominate, I'm interested in the runner up.

Reply with other. Boost if you have Node.js reach.
ty 💞

Brian LeRoux 💚
2 weeks ago

toying w the idea of doing a talk titled "Transpiling: It has Tradeoffs" for #nodejs but entirely unsure if this is a complete waste of time for an audience that will learn better eventually anyways

Webdev Weekly
2 weeks ago

Web Development recap for week 11/2023

https://discu.eu/weekly/webdev/2023/11/

#css #javascript #nodejs #programming #typescript #webassembly #webdev

Get RSS feeds and support this bot with the premium plan: https://discu.eu/premium

thomas 🌸
2 weeks ago

Interesting to read Ryan's explanation for bringing package.json support to deno and the goals using a bare specifier for v2 with the deno: package specifier. Excited for the future of deno 🦕 https://deno.com/blog/package-json-support

#deno #nodejs #typescript #javascript

Engineering challenges I'm interested in
🌲 Scaling high traffic #WordPress ecommerce sites. I will solve immediate problems and develop a strategy to move some parts of the stack out of WordPress. #AWS #Docker #Laravel #nodejs etc.
🌲 Using large language models -- GPT, etc. -- to improve content creation, personalization and search.
🌲Integrating #activitypub into CMSes and social media management tools
#FediHire

#TIL that "npm ci" means "npm clean-install". I always thought it was an #npm command for #continuousIntegration #ciCd #node #nodejs #javaScript

Chris Manson
2 weeks ago

I release a new command line tool today 🎉 It is a super-simple way to compare two folders and can be super useful when testing a build system against a known good output

https://github.com/mainmatter/compare-fixture

#opensource #testing #javascript #nodejs

cmmdmx
2 weeks ago

Today, #nodejs package hell drove me crazy. #commonjs and #esm bundling with only #esbuild seems to be impossible today; at least I didn't manage to get a configuration that supports
- browser environment (when installled in an app, for example with #vitejs)
- node environment (for services in node docker containers)
- bin script support

Especiallly the generated CommonJS of esbuild seems to be strange and lead to a lot of incompatibilites.

Tane Piper
2 weeks ago

Wrote my own #ChatGPT API with #alpacaCPP 😂 https://github.com/antimatter15/alpaca.cpp

(Basically, it runs the chat executable as a spawned process, then that file is forked from another that has an expressjs server running - working with this stuff with events is a mess but it works per request at least)

#nodejs #ai #api

A locally running ChatGPT bot using Alpaca.cpp
Brian LeRoux 💚
2 weeks ago

took the new #nodejs test runner for a spin and like it a lot. one less dependency and no more debates about test runners works well for me.

will keep our existing stuff on node-tap, and tape for a long time to come still I'm sure but nice to see this for new things.

https://github.com/brianleroux/architect-example-node-test-runner/blob/main/test.mjs

🌈 Lascapi
2 weeks ago

I'm looking for a #database of #software, #framework, #library and #plugin version where I can found for example which version of #webpack I can use with #angular8 and with which version of #typescript and #nodejs. ( #realWorld example 😅 ).

A bit like https://gist.github.com/LayZeeDK/c822cc812f75bb07b7c55d07ba2719b3

Any idea?

#freeSoftware #openSource #data #web #question

reverentgeek
2 weeks ago

I'm streaming today at 2:00 PM ET! Come hang out and learn with me as we build a trivia game in Node.js using Vue, Tailwind CSS, and socket.io! #AHOTLive #streaming #nodejs #websockets #javascript https://www.linkedin.com/feed/update/urn:li:ugcPost:7042174914186940416

All Hands On Tech Live developer stream Thursdays at 11:00 AM PT/2:00 PM ET with David Neal, Pluralsight Principal Developer Advocate
JS Party 🪩
2 weeks ago

📯 Today on JS Party LIVE  📯

Erick Wendel joins @jerod & @kball to discuss BeJSConf and his work on recreating @nodejs from scratch! Join us! 💚

#javascript #nodejs #deno #bunjs #runtimes

https://jsparty.fm/268/live
https://jsparty.fm/268/time
https://jsparty.fm/community

Brian LeRoux 💚
2 weeks ago

just trying to find the #nodejs docs…which is down…which seeing this doesn't really surprise me. I know the content is in here somewhere…

Tane Piper
2 weeks ago

I asked #ChatGPT "Show an example of a package.json file for a library that exports a function and needs to be supported in both node and the browser through ESM and CJS imports"

Not sure how correct it is? Any ideas #nodeJS #webDev folks?

A potential package.json for a library that works both in node and the browser
Here's what each property does:

* “name’: the name of your library

* “version’: the version of your library

* “main’: the entry point for CommonJS (CJS) imports in Node.js

* “module’: the entry point for ECMAScript module (ESM) imports in Node.js and browser environments that support ESM

* “exports’: maps import specifiers to files in your package, allowing users to import your library using different syntaxes (e.g., “import foo from 'my-library'® or “const foo = require('my-library')")

* “browser: overrides the “main” and “module" fields for use in browser environments that do not support ESM (e.g., older versions of Internet Explorer). The “browser" field maps CJS and ESM entry points to a single browser-compatible file.

* “files : alist of files to include in your package when it is published to npm. In this example, we only include the “dist" directory, which contains the compiled code for our library.

* “scripts’: commands that can be run with “npm run <script-name>". In this example, we have two scripts: “build™ (which uses Rollup to compile our library) and “prepublishOnly” (which ensures that the “build" script is run before publishing the library).

* “devDependencies’: packages that are only required during development (e.g., Rollup plugins).

* “dependencies’: packages that are required to use your library.
The files used as entry points