Masthash

#Node

Andrew Shell
2 days ago

Hello everyone! I'm a web developer (#Node and #PHP) in Madison, Wisconsin.

In my free time, I enjoy exploring the idea of #PKM, #SecondBrain, and using #Wiki to improve my #Productivity and #NoteTaking. I'm passionate about the ideals of the #IndieWeb and #SemanticWeb. I'm also interested in #Metaphysics, #Manifestation, and #Synchronicity.

I want to meet new people for conversations. I'd love to connect if any of my interests resonate with you! Thanks for reading my #Introduction.

Blabla Linux 🇧🇪♻️💻🐧🇫🇷
2 days ago

Le lab se composera de 3 #node Proxmox avec en stockage local du #LVM-Thin, du #raid #ZFS et du répertoire, d'un serveur de stockage partagé raid #NFS, et de deux serveurs de #sauvegardes Proxmox #Backup Serveur. Le premier redonde vers le deuxième 😏

Une fois tout en place, création de #containers (LXC) et VMs pour s'amuser avec la #migration, la #HA avec et sans #réplication, s'amuser avec les sauvegardes, etc 💪

Jobs for Developers
2 days ago
Doug Parker
2 days ago

It feels like a design flaw in the #Node resolution algorithm that packages and files are effectively indistinguishable and it messes up file path semantics. For example:

```
// Imports from `./foo.js`.
import './foo.js';

// Imports from `node_modules/foo.js/index.js`
import 'foo.js';
```

The fact that `foo.js` means something *completely different* from `./foo.js` feels like it's violating a fundamental invariant of #Unix file paths.

I find myself having to add pointless `./` paths all the time just to get Node resolution to look for a file and not a package.

looks like #github is having a time™ the one time I actually feel like messing around on my projects. I just learned where to put my userconfig for #pnpm to globally disable dependency postinstall scripts and it's not letting me push to my dotfiles repo

TL;DR:
mkdir -p ~/.config/pnpm
echo "ignore-dep-scripts=true" >> ~/.config/pnpm/rc

#opsec #node #security

Quin
3 days ago

I was today years old when I discovered Nodemon. It gives you really nice hot reloading for Node. Quite useful for APIs or Discord bots. Probably more too, but that's what I use it for. I just added something like:
"mon": "nodemon index.js"
to my Discord bot's "scripts" section of package.json, so I can run `npm run mon` and now it reloads whenever I save a file.
https://www.npmjs.com/package/nodemon
#JavaScript #Discord #DiscordJS #Nodemon #node

Jobs for Developers
4 days ago
Jobs for Developers
4 days ago

Metatheory is hiring Full Stack Engineer

🔧 #nft #javascript #typescript #react #node #graphql #rest #blockchain #web3 #aws
🌎 Remote; California, United States
⏰ Full-time
💰 $95k - $210k (Estimate)
🏢 Metatheory

Job details https://jobsfordevelopers.com/jobs/full-stack-engineer-at-metatheory-jan-10-2022-c50025?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

Jobs for Developers
5 days ago
Christian Grasser
5 days 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

Jobs for Developers
6 days ago
Jobs for Developers
6 days ago
Doug Parker
6 days ago

Playing with #ESModules in #Node today and had some fun.

A meme featuring a conversation between Patrick Star and Man Ray.

Man Ray: I want to import the ESM version of a package.

Patrick: Sounds reasonable

Man Ray: So I use `import` from an ESM file.

Patrick: Yep, good start

Man Ray: And the package has an "import" condition specifically for ESM imports.

Patrick: Yeah, it supports ESM.

Man Ray: So import the package.

Patrick: SyntaxError: the requested module is a CommonJS module.
Tech News Worldwide
6 days ago

Node.js compatibility for Cloudflare Workers – starting with Async Context Tracking, EventEmitter, Buffer, assert, and util

https://blog.cloudflare.com/workers-node-js-asynclocalstorage/

#CloudflareWorkers #JavaScript #WinterCG #Node.js

Tim Nolte
1 week ago

So #WordPress plugin, or theme, Devs. Is there a #Docker only local plugin(or theme) development environment available? Something that doesn't require me to maintain #Node, #NPM, #PHP, or #Composer on my local machine? Perhaps #VSCode Dev Containers is the closest I'm going to get but I don't want the #IDE lock-in either, as I don't even use VSCode. I've been playing with just a Dockerfile & docker-compose.yml but it has some usability issues currently.

Jobs for Developers
1 week ago

Bees is hiring Node.JS Developer

🔧 #java #javascript #typescript #node #redis
🌎 Campinas, Brazil
⏰ Full-time
💰 $90k - $210k (Estimate)
🏢 Bees

Job details https://jobsfordevelopers.com/jobs/node-js-developer-at-bees-jun-28-2022-55adee?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

Lucas Santos
1 week ago

Uma das maiores diferenças em relação ao #Node é que o #Deno vai tentar ao máximo ser compatível com as Web APIs que estamos acostumados no browser, portanto é possível usar coisas como alert, prompt, caches e muito mais 😍

Lucas Santos
1 week ago

O #deno é um dos muitos runtimes #JavaScript criados para rodar JS no servidor, apesar de ter sido criado pelo mesmo criador do #Node, o Deno tem algumas diferenças como o uso do #rust como base e #TypeScript interpretado nativamente! Tudo sobre o engine #V8 🤯

Jobs for Developers
1 week ago

Chainlink Labs is hiring Senior Software Engineer - Golang

🔧 #golang #solidity #typescript #node #blockchain #defi #aws #postgresql #terraform #seniorengineer
🌎 Remote; San Francisco, United States
⏰ Full-time
💰 $100k - $200k (Estimate)
🏢 Chainlink Labs

Job details https://jobsfordevelopers.com/jobs/senior-software-engineer-golang-at-chainlink-labs-sep-9-2020-49a803?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

Jobs for Developers
1 week ago
Jobs for Developers
1 week ago

Xero is hiring Software Engineering Opportunities (Intermediate - Lead)

🔧 #csharp #typescript #dotnet #react #node #aws #cicd #docker #kubernetes #techlead
🌎 Wellington, New Zeland
⏰ Full-time
💰 $90k - $200k (Estimate)
🏢 Xero

Job details https://jobsfordevelopers.com/jobs/software-engineering-opportunities-intermediate-lead-at-xero-com-dec-6-2022-20c143?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

Node v12 and puppeteer-core is such a bad combination. "Error: Cannot find module 'fs/promises'" 😱

#node #nodejs #puppeteer #sad

https://github.com/nodejs/node/issues/35740#issuecomment-713778857

Jobs for Developers
1 week ago

Iron Fish is hiring Cryptography Engineer (Zero Knowledge Proofs)

🔧 #javascript #rust #typescript #react #node #cryptocurrency
🌎 Remote; San Francisco, United States
⏰ Full-time
💰 $90k - $210k (Estimate)
🏢 Iron Fish

Job details https://jobsfordevelopers.com/jobs/cryptography-engineer-zero-knowledge-proofs-at-ironfish-network-dec-9-2021-92d9da?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

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

Jobs for Developers
2 weeks ago

Xero is hiring Software Engineering Opportunities (Intermediate - Lead)

🔧 #csharp #typescript #dotnet #react #node #aws #cicd #docker #kubernetes #techlead
🌎 Auckland, New Zealand
⏰ Full-time
💰 $90k - $200k (Estimate)
🏢 Xero

Job details https://jobsfordevelopers.com/jobs/software-engineering-opportunities-intermediate-lead-at-xero-com-dec-5-2022-71a1a6?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

Nathan Friedly
2 weeks ago

https://npmjs.com/set-cookie-parser now supports fetch()'s new getSetCookie() API, to provide easier and more reliable access to uncombined Set-Cookie headers.

(Multiple Set-Cookie header values were combined into a single comma-separated string previously, which is tricky to parse since the values can also contain commas!)

#Node.js supports the API, #deno has an open PR, and hopefully #ReactNative will roll out support sometime soon.

See https://github.com/whatwg/fetch/pull/1346 for more.

#javascript #js #nodejs #npm

Jobs for Developers
2 weeks ago

Patreon is hiring Senior Frontend Engineer - Content Engagement

🔧 #javascript #typescript #react #node #rest #seniorengineer
🌎 New York City, United States
⏰ Full-time
💰 $166k - $231k
🏢 Patreon

Job details https://jobsfordevelopers.com/jobs/senior-frontend-engineer-content-engagement-at-patreon-jan-25-2023-c73041?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

Jobs for Developers
2 weeks ago

Patreon is hiring Senior Frontend Engineer - Content Engagement

🔧 #javascript #typescript #react #node #rest #seniorengineer
🌎 New York City, United States
⏰ Full-time
💰 $166k - $231k
🏢 Patreon

Job details https://jobsfordevelopers.com/jobs/senior-frontend-engineer-content-engagement-at-patreon-jan-25-2023-c73041?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

Jobs for Developers
2 weeks ago

Diligent is hiring Software Engineer (Node.js or Ruby on Rails)

🔧 #node #ruby #rubyonrails #c #typescript #react #serverless #api #aws
🌎 Budapest, Hungary
⏰ Full-time
💰 $90k - $210k (Estimate)
🏢 Diligent

Job details https://jobsfordevelopers.com/jobs/software-engineer-node-js-or-ruby-on-rails-at-diligent-oct-4-2022-ac67b0?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

Jobs for Developers
2 weeks ago
tripu
2 weeks ago

Alternatives to #Handlebars:

Mustache: zero dependencies, and dead simple. Too simple? Being logic-less means that conditionals and loops are pre-cooked, and that may limit options.

Pug: main advantage and main drawback: its concise but idiosyncratic syntax, similar to that of #Slim — which I know and have used in the past, but is too much of a departure from #HTML.

EJS: similar to Handlebars, simple but apparently versatile. Documentation isn’t great.

:javascript: #JS #JavaScript :node: #Node.js #Node

tripu
2 weeks ago

Alternatives to #Express:

Koa, which can either replace or complement both Express and Connect.

Fastify, which looks straightforward and very similar to Express. Plugin for templating (supporting Handlebars, Mustache, Pug and EJS): @fastify/view.

NestJS, which seems too convoluted and probably redundant since it works on top of either Express or Fastify (?).

Meteor: more of a platform. No tutorial for vanilla JS (only for React, Vue, etc), and not oriented towards SSR.

I’ll probably go for #Koa or #Fastify.

:javascript: #JS #JavaScript :node: #Node.js #Node

Assaf
2 weeks ago

gajus/turbowatch “Extremely fast file change detector and task orchestrator for #Node.js”

https://github.com/gajus/turbowatch/?ck_subscriber_id=1678093376

It would be great if all the different dev tools consolidated on one watcher that’s dependable and feature complete. Maybe this is it?

Motivation
To abstract the complexity of orchestrating file watch operations.

For context, we are using Turborepo. The reason this project came to be is because Turborepo does not have "watch" mode (issue #986).

At first, we attempted to use a combination of tsc --watch, concurrently and Nodemon, but started to run into things breaking left and right, e.g.

services restarting prematurely (before all the assets are built)
services failing to gracefully shutdown and then failing to start, e.g. because ports are in use
Furthermore, the setup for each workspace was repetitive and not straightforward, and debugging issues was not a great experience because you have many workspaces running in watch mode producing tons of logs. Many of the workspaces being dependencies of each other, this kept re-triggering watch operations causing the mentioned issues.
tripu
2 weeks ago

:javascript: #JS :node: #Node

What should I use instead of #Express and #Handlebars for a web application in Node.js in 2023? Can someone summarise pros and cons of the most popular alternatives? I see way too many…

I just read this #article - check it out: "Announcing TypeScript 5.0 - TypeScript" - Today we’re excited to announce the release of TypeScript 5.0! This release brings many new features, while aiming to make TypeScript smaller, simpler, and faster. We’ve implemented the new decorators standard, added functionality to better support ESM projects in Node and bundlers,
https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/
#typescript #node#Otter

Mark Gardner ‍:sdf:
2 weeks ago

@gizmomathboy @ovid @mcgrew It’s that every #Electron app is its own #Chromium and #Node runtime and process. They don’t use a shared engine like the #WebOS apps likely did.

If you want to see the difference find some Electron apps that are also available in #PWA form and run them all via the same browser app.

ehmicky
3 weeks ago
Clayton Errington 🖥️
3 weeks ago

I finally got the #Codeberg solution completed to build a #Node based #staticsite to @Codeberg Pages.

My example is using an @eleventy base blog template, but should be simple enough to reuse in other NodeJS web solutions.

I wrote more up about the solution on my website: https://claytonerrington.com/blog/codeberg-ci-and-11ty-builds/

#100DaysToOffload : 23rd post
#11ty #NodeJS #WebDev #WoodpeckerCI #automation

Chris Minnick
3 weeks ago

I just finished the final review of my new book (coming in May): JavaScript All-In-One For Dummies. This one has been my dream to write for over a decade, and I've been working on it for 10 months.

When I used to hire junior developers, I'd find myself (and them) overwhelmed with how much they had to know to be to be productive. This book addresses that.

#JavaScript #Git #vscode #React #Vue #Svelte #ESLint #Jest #Node #webapi #express #mongodb #webpack #babel #vite #rest #jwt #micdrop

Jobs for Developers
3 weeks ago
Graphile 🔮
3 weeks ago

Hello Mastodon! We are so happy to be able to join here at @fosstodon!

We are a small company writing a suite of open source projects in the #GraphQL #Node and #Postgres ecosystem.

You can find our flagship project PostGraphile on GitHub https://github.com/graphile/ but our most exciting project is still in closed access at the moment and is codenamed Grafast.

We look forward to making new connections here and sharing sneak peeks of our new work soon 👀 https://youtu.be/x0FMjL5-kNI #introduction

Clayton Errington 🖥️
3 weeks ago

I have a working solution. I’ll get a test site setup and a quick write up soon on how to do this. Might make it a template update the CI examples to add a #node based web app.

I used my site currently on #GitHub and moved it to #codeberg to use their CI to host it on #CodebergPage

Check out the #11ty build https://cjerrington.codeberg.page/

Doug Parker
4 weeks ago

Looking into the current state-of-the-art for #NodeJS security and I'm kind of baffled by how primitive it is compared to browsers.

* No #TrustedTypes.
* No `SafeHtml`.
* No #ContentSecurityPolicy.
* No permission abstractions.
* Not even a way to ban `eval()`.

Best thing I've found is `--frozen-intrinsics`, which is interesting, and I don't think there's a browser equivalent. You still have to freeze `globalThis` though to get much value out of it.

https://nodejs.org/en/docs/guides/security/#monkey-patching-cwe-349

There are also some interesting security policies, which look like they have a lot of potential. However they're all experimental right now and seem focused on code integrity.

https://nodejs.org/api/permissions.html

This this really the state-of-the-art for #Node security right now? Am I missing something?

Aalaap Ghag 🟡
4 weeks ago

I forgot to check if #Node.js 18 was supported on the #JavaScript platforms I worked with and I was still rocking 16. That changes now! 😃

Pete Hodgson
4 weeks ago

blurghed: adding feature flagging to a node app using OpenFeature.

Get started with a simple hard-coded feature flag provider in literally a couple of minutes, with the option of a seamless future upgrade to the full-blown feature flagging frameworks that integrate with OpenFeature.

https://blog.thepete.net/blog/2023/03/02/five-minutes-to-feature-flags/

#FeatureFlags #openfeature #node #express #javascript #cncf

Adam Fortuna
1 month ago

I had some fun this morning building out an idea from Ste on the Hardcover team: Ask Jules - an Open AI-powered bot for finding books.

The #OpenAI #Node library was a breeze to implement, and the results ended up being OK - not the greatest.

The trickiest part was getting ISBNs in a format to parse out and query our database with. That allows saving books to your Want to Read list from there.

Interested to see what people think about it.

https://hardcover.app/labs/askjules

#book #books #hardcoverapp

A conversation with a bot getting book recommendations for books similar Hyperion, then books by women authors.
Fynn Becker
1 month ago

Kinda funny how the #Deno thing came full circle here 🙃

#Node.js is actually really great at what it does and a VC-backed startup with lots of promises is probably not the best for critical infrastructure.

https://deno.com/blog/v1.31#packagejson-support

heapwolf
1 month ago

Imagine all the client side scripts/tools you could build if #node, #bun or #deno had a DOM, and all the other #browser apis... oh, wait that's https://socket.sh with `--headless` flag :D

Caolan McMahon
1 month ago

I'm converting a non-trivial project from #node to #deno and it's been relatively painless so far. For now, I'll have to keep node + karma for executing unit tests in real browsers but everything else is handled by deno. The tooling and typescript support has been great.

Sergi Mansilla
1 month ago

I played with #Deno for the first time yesterday, and although I appreciate its attempt to address some of #Node.js' shortcomings, I wasn't exactly blown away. However, my opinion may be shortsighted since I've only used it for a few hours.
(1/3)

Dave Mackey
1 month ago

lol

when you (aka me) are prompted by #npm to upgrade to a newer version and (in a temp lapse of judgment) decide to do so.

of course, npm won't update itself to a version that isn't compatible with the version of #node npm is running in, right? right?!

now I have npm 9 (not) running on node 13. 😂

np, I'll downgrade node: `npm i -g npm@8`

"ERROR: npm 9.5 is known not to run on Node 13.14"

Good thing I had #nvm installed:

`nvm uninstall 13.14.0`
`nvm install 13.14.0`

Life is good again.

Dave Mackey
1 month ago

how does a #node module have newer versions on #npm than on it's #github repo?

https://www.npmjs.com/package/vue-async-computed

https://github.com/foxbenjaminfox/vue-async-computed

(I imagine the simple answer is likely that the author deleted the newer releases from the repo?)

#question

Evert Pot
1 month ago

I wrote something!

Building a simple CLI tool with modern Node.js

https://evertpot.com/node-changelog-cli-tool/

#node #esm #typescript

IT News
2 months ago

Deno 1.30 backs built-in Node.js modules - Version 1.30 of the Deno JavaScript/TypeScript runtime, published late January 2023, e... - https://www.infoworld.com/article/3687728/deno-130-backs-built-in-nodejs-modules.html#tk.rss_all #softwaredevelopment #javascript #node.js

Evert Pot
2 months ago

Anyone know something about ESM, CommonJS, Typescript and how they interact?

Stuck on a problem, posted on Stack overflow:

https://stackoverflow.com/questions/75354770/isomorphic-dirname-in-esm-and-commonjs

#node #typescript #esm #commonjs

Jon McLaren
2 months ago

I'm a fan of #Deno, but something I'd like to do is run a node based CLI tool - using deno. There doesn't seem to be much online about trying to do something weird like this. For me it's an inhibitor of fully diving into Deno though. (#CLI tools get used by CMS platforms etc. and not all have created a deno version)

#node #npm #javascript

Elly Loel ✨🌱
2 months ago

I've been hearing about PNPM for ages now but never had the opportunity to use it on a project.

Before I do though, I want to know what are the pitfalls or reasons not to use it?

:javascript: #JS #Node #NPM #Yarn #PNPM

Clayton Errington 🖥️
2 months ago

Hey #11ty folks! Is there a way to get all the tags used in a site, then save then to a text file or used for PlopJS? I'm working on using PlopJS to build out a new post template structure. I'd like to have the tags I've used previously be a part of the checkbox list.

#node #nodejs #JavaScript

Christophe Porteneuve
2 months ago

Si tu as envie de déchirer en #Git ou en #Node.js, je ne saurais trop te conseiller de t'inscrire viiiiite à une de nos sessions de #formation pour dans 2 semaines !

Topo sur la Git : https://www.linkedin.com/feed/update/urn:li:activity:7026229991914795008

Topo sur la Node : https://www.linkedin.com/feed/update/urn:li:activity:7026569255068270594

Finançable en direct ou via le Plan de ton OPCO ! Et si tu as très fort envie mais que c'est un peu trop cher, envoie-nous un mail on verra si on peut faire un geste selon ta situation.

Boosts (très très) appréciés, c'est très bientôt, merci 😘

Jason Raimondi
2 months ago

A simple library with no dependencies I’ve published to both #deno and #node is route-strings

https://github.com/jasonraimondi/route-strings