melroy, to random
@melroy@mastodon.melroy.org avatar

@lukekarrys How to buy you a coffee? I want to thank you for all your npm contributions, especially the maxSockets issue was a big deal to fix.

83r71n, to Cybersecurity
@83r71n@ioc.exchange avatar

A critical vulnerability, named BatBadBut, was discovered in the Rust programming language, affecting not just Rust but also Erlang, Go, Python, Ruby, and potentially others. This vulnerability, with a severity score of 10/10, could allow attackers to execute arbitrary commands on Windows systems by exploiting how Rust handles batch files. The issue arises from Rust's standard library improperly escaping arguments when invoking batch files on Windows, leading to potential command injection. The vulnerability has been addressed with a fix in Rust version 1.77.2, which developers are urged to update to. Other programming languages and systems, including Node.js, PHP, and Java, are also affected and are working on patches.

https://flatt.tech/research/posts/batbadbut-you-cant-securely-execute-commands-on-windows/

https://blog.rust-lang.org/2024/04/09/cve-2024-24576.html

f3rno64, to programming
@f3rno64@aus.social avatar

As I've noticed it's #PortfolioDay and have seen some wonderful artwork posted by people, as a programmer, I'd like to share a project I made, a command line time tracker with the purely textual interface.

Since I spent a good deal of time designing the textual output and UX I figure it's akin to art.

The interface is natural language input of times and dates representing when you start and end tasks.

It's available at https://f3rno64.io/a-nodejs-cli-time-tracker and the associated blog post is at https://f3rno64.io/a-nodejs-cli-time-tracker

#programming #tech #cli #nodejs #terminal

A list of timesheets and the sum of the durations of tasks within them.
A concise listing of a short period of time in a timesheet with a few tasks listed.

carlton, (edited ) to random
@carlton@fosstodon.org avatar

The coffee must be good this morning.

Just drafting some thoughts about and « ”I’m just going to write my own”, is the battle-cry of morons » gently flows from the fingers. ☕️

May have to copy-edit 🤔

chanakya,
@chanakya@social.screamingatmyscreen.com avatar
nurkiewicz, to programming
@nurkiewicz@fosstodon.org avatar

#OTD 10 years ago #ExpressJS 4.0 was released. 5.x is still in beta https://www.npmjs.com/package/express/v/4.0.0 #NodeJS #javascript

voxpelli, to programming
@voxpelli@mastodon.social avatar

Completed setup of a #refurbed small Windows PC today and remoted into it from my MacBook to #debug some #nodejs code that was failing its windows tests on GitHub Actions

Is almost 20 years since Windows was my primary dev machine – it feels so alien nowadays when all my dev work is centered around git and cli-tools

leanpub, to devops
@leanpub@mastodon.social avatar

Learn Kubernetes & Docker - .NET Core, Java, Node.JS, PHP or Python by Arnaud Weil is free with a Leanpub Reader membership! Or you can buy it for $11.99! http://leanpub.com/k8s

joelanman, (edited ) to programming
@joelanman@hachyderm.io avatar

hard to believe that the only built in way to update a package to the latest version in npm is

npm uninstall [package name]  
npm install [package name]  

#nodejs

update, you can use

npm install [package name]@latest  

thanks @boutell

andy_blum, to programming
@andy_blum@drupal.community avatar

Ever worked on #nodejs projects locally and wished for a more standardized, production-like experience for your team? Try @ddev! I walk you through setting your local up with #docker #containers in my latest article on @lullabot

https://www.lullabot.com/articles/nodejs-development-ddev

aral, to web
@aral@mastodon.ar.al avatar

Just improved the display of error messages in Kitten¹.

They should be far more robust now.

Run kitten update to get the latest.

:kitten:💕

¹ https://codeberg.org/kitten/app

#Kitten #errorMessages #stackTrace #web #dev #JavaScript #nodeJS

aral, to programming
@aral@mastodon.ar.al avatar

Me: Hmm, maybe I should look into Bun again and see how its Node.js compatibility is coming along.

Also me: I wonder who makes Bun…

Me, yet again: Ah, it’s a venture-capital funded startup called Oven (see what they did there?)

Finally, me: rm -rf ~/.bun

(Remember, kids: Venture capital is the fart that precedes enshittification. It’s best not to linger once you’ve caught a whiff of it.)

#bun #NodeJS #ventureCapital #VC #noThankYou #JavaScript #web #dev

leanpub, to programming
@leanpub@mastodon.social avatar

P4NR - IoT Programmer https://leanpub.com/b/p4nr-iotprogrammer by Iniationware and Joel Krec is the featured bundle on the Leanpub homepage! https://leanpub.com #NodeJs #InternetOfThings #Javascript #Typescript #SoftwareEngineering #CloudComputing

jonippolito, to Cybersecurity
@jonippolito@digipres.club avatar

A cybersecurity researcher finds that 20% of software packages recommended by GPT-4 are fake, so he builds one that 15,000 code bases already depend on, to prevent some hacker from writing a malware version.

Disaster averted in this case, but there aren't enough fingers to plug all the AI-generated holes 😬

https://it.slashdot.org/story/24/03/30/1744209/ai-hallucinated-a-dependency-so-a-cybersecurity-researcher-built-it-as-proof-of-concept-malware

#AIethics #Cybersecurity #GPT #OpenAI #LLM #GenAI #GenerativeAI #Python #NodeJS #Ruby #Golang

joe, to bluesky

Four months ago, I created a Bluesky account to play around this the API and managed to create a simple node script to post a status to it. I wasn’t able to figure out how to get it to work with IFTTT, though. This week, I spun up a Pipedream workflow to try to post an announcement when a new blog post goes up.

https://i0.wp.com/jws.news/wp-content/uploads/2024/03/Screenshot-2024-03-27-at-7.33.56%E2%80%AFPM.png?resize=1024%2C522&ssl=1

If you wanted to replicate what I have so far, you should be able to set up your trigger like this and then the second step just looks like …

The only issue is that Bluesky requires you to specify exactly where in the string the URIs are and I don’t think that I can be bothered to figure out how to go about that at the moment. Until I figure that out, folks will need to copy and paste URLs instead of clicking on them.

https://jws.news/2024/this-blog-has-a-bluesky-account-with-a-few-issues/

#Bluesky #NodeJs #Pipedream

thisismissem, to programming
@thisismissem@hachyderm.io avatar

So I just saw a PR for a Node.js project, where the developer had used an npm command I'm unfamiliar with.. or at least, I didn't know of:

npm clean-install

Now, I'm familiar with npm ci, but I had absolutely no idea that the alias of npm clean-install existed. I didn't even realise that's what "ci" stood for "clean install”.

I always thought npm ci meant “the npm command you wanna run in CI environments”

🤯

thisismissem, (edited )
@thisismissem@hachyderm.io avatar

Did you know that npm ci stood for npm clean-install ?

WebAxe, to webdev
@WebAxe@a11y.info avatar

Pa11y — run web accessibility tests the via command line or Node
https://github.com/pa11y/pa11y
#webdev #nodeJS #a11y #cli #tools #tips

leanpub, to devops
@leanpub@mastodon.social avatar

Learn Kubernetes & Docker - .NET Core, Java, Node.JS, PHP or Python by Arnaud Weil is free with a Leanpub Reader membership! Or you can buy it for $11.99! http://leanpub.com/k8s

jaandrle, (edited ) to programming
@jaandrle@fosstodon.org avatar

🎉 nodejsscript@v1.0.0 :nodejs:
Easy cross-platform “one–file” scripting using JavaScript.

You can use it as:

Gradually replenished thread 👇

#nodeJS #nodeJsScript #JavaScript #scripting #zx #shjs #bash

jaandrle, (edited )
@jaandrle@fosstodon.org avatar

🎉 nodejsscript@v1.0.0 :nodejs:

…provides quick way to build cli with tab-completion support.

#nodeJS #nodeJsScript #JavaScript #scripting #zx #shjs #bash

jaandrle,
@jaandrle@fosstodon.org avatar

🎉 nodejsscript@v1.0.0 :nodejs:

…use in terminal for example for analyze JSONs

#nodeJS #nodeJsScript #JavaScript #scripting #zx #shjs #bash

jaandrle,
@jaandrle@fosstodon.org avatar

🎉 nodejsscript@v1.0.1 :nodejs:

just small fixes in docs and tldr functionality

#nodeJS #nodeJsScript #JavaScript #scripting #zx #shjs #bash

jaandrle,
@jaandrle@fosstodon.org avatar

🎉 nodejsscript@v1.0.1 :nodejs:

quick evaluate JS in terminal, examining JSON (files), …

#nodeJS #nodeJsScript #JavaScript #scripting #zx #shjs #bash

jaandrle,
@jaandrle@fosstodon.org avatar

🎉 nodejsscript@v1.0.1 :nodejs:

use CSS-like syntax for styling your outputs → simple loading/spin animation

#nodeJS #nodeJsScript #JavaScript #scripting #zx #shjs #bash

nurkiewicz, to node
@nurkiewicz@fosstodon.org avatar

From https://blog.vlt.sh/blog/the-massive-hole-in-the-npm-ecosystem

  • a package's manifest is published independently from its tarball
    manifests are never fully validated against the tarball's contents
  • the ecosystem has broadly assumed the contents of the manifest & tarball are consistent
  • any tools or insights using the public registry are susceptible to exploitation/likely inaccurate
  • bad actors can hide malware & scripts in direct or transitive dependencies that go undetected

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