Node.js Icon

Node.js

Node.js is a tool for executing JavaScript in a variety of environments.
139 Stories
All Topics

Casper Beyer Medium

Is the internet at the mercy of a handful of developers?

In this post from Casper Beyer titled The Node.js Ecosystem Is Chaotic and Insecure, he cites examples like left-pad, is-odd, is-number — and goes on to say the way to be responsible with dependencies is... ...don’t trust package managers, every dependency is written by some random developer somewhere in the world and is a potential attack vector. ... Is this being too paranoid? Perhaps, or maybe it’s the healthy amount considering the massive reach these trivial packages can have. While this focuses on Node.js, the lessons learned apply anywhere you have dependencies in your code.

read more...

Justin Sisley github.com

mostly – a full stack web app starter kit built on Node.js

mostly's purpose is to serve as a lightweight, easy-to-comprehend starting point, with a focus on providing a great developer experience while helping you get high quality and maintainable web applications deployed rapidly. It uses Express for the server and React for the client. Worth a look if you're starting up a new web project. I dig this point about it: Nothing is hidden, nothing is magical, and all of the "plumbing" is accessible and simple.

read more...

Node.js Icon hackernoon.com

A crash course on Serverless with Node.js

If you've heard of serverless' virtues, but have never taken that first step toward trying it out, this crash course is for you. Here's how you might feel by the end: What a journey. You have now witnessed the transition from traditional web development into the serverless revolution. With these simple tools we now have everything we need to create awesome, scalable, and reliable applications. In my humble opinion, this is all still too much work for most of us to go through. AWS needs some serious competition in this space. Said competition is undoubtedly on the way.

read more...

Steven Loria github.com

Making the Node.js REPL more productive

Project-specific REPLs for Node.js I'm a bit surprised this functionality isn't in the box, nonetheless: local-repl saves you from typing out imports every time you open a new Node.js REPL. You specify the modules and objects that you want to automatically import in either package.json or .replrc.js. It also lets you use await in the REPL without wrapping your code in async functions. That sounds quite nice.

read more...

Slack Icon github.com

Slack's desktop app bogging you down? Here's a speed-focused alternative.

A cross-platform, open source Slack app that's built for speed?! Shut up and take my money admiration! Wey is written in Node and the UI is powered by the Yue library, which means it's not hitchin' its wagon to Electron. But it does come with a rather large caveat: Do not use this for work, you might miss important messages due to bugs and missing features. Depending on how much you like your job, you might consider that more of a feature than a bug. 😉

read more...

Node.js Icon meowni.ca

Automatic visual diffing with Puppeteer

Monica Dinculescu: I did a little song-and-dance that sets up Puppeteer , takes screenshots of your app (like, all the routes you care about), and then compares them to the “golden” ones. If they match, your test passes! It only works with Chrome (because Puppeteer), but that's not a big deal since this is the kind of thing you only put in your devDependencies. The results are super cool in your test suite output:

read more...

Node.js Icon github.com

Zenbot

a command-line cryptocurrency trading bot using Node.js and MongoDB. This is on version 4, so a boat load of effort has been invested in this tool. In light of that, I find this statement from their README funny and somewhat sad: Zenbot 4 is functional, but is having trouble reliably making profit. At this point, I would recommend against trading with large amounts ...

read more...

Node.js Icon changelog.com

next-update answers the question: "Is it safe to upgrade my npm module's dependencies?"

Upgrading your library's dependencies can be a scary proposition. Not upgrading your library's dependencies can be even scarier. Thankfully, next-update is here to help. Let's imagine: You would like to update lodash and async to latest versions, but not sure if this would break anything. With next-update it is easy. You run the next-update command and it tells you whether or not updating any of your dependencies breaks you tests. If you don't have tests, I guess you should go write some...

read more...

Node.js Icon changelog.com

Trash – a safer and cross-platform `rm`

Instead of permanently deleting files from the command line, this little tool moves them to the trash. Like me, you might be thinking, "But I can do the same thing with mv." To this Sindre writes: Not really. The mv command isn't cross-platform and moving to trash is not just about moving the file to a "trash" directory. On all OSes you'll run into file conflicts. The user won't easily be able to restore the file. It won't work on an external drive. The trash directory location varies between Windows versions. For Linux there's a whole spec you need to follow. On OS X you'll loose the Put back feature. Who knew?

read more...
0:00 / 0:00