My favorite npm packages

By GrahamSH

As you probably know, npm is the package manager for Node.JS. Here are my 5 favorite npm packages.

5. chalk

Chalk lets you print colored data to the console. For example:

const chalk = require("chalk");
console.log("Hello world!"));
// Hello world

4. Bijou.js

Bijou.js is a package that provides utilities for node and in the browser

import { uuid } from "";
// c3435c88-0a20-491f-9391-3afde9c4a2d1

3. node-fetch

Node-fetch is a package that provides fetch() for Node. It's awesome for fetching data in node applications, since the use is identical to window.fetch(). To fetch data, you could use it like this:

const fetch = require("fetch");
(async () => {
  const res = await fetch("");
  const data = await res.json();
// {
// "userId": 1,
// "id": 1,
// "title": "delectus aut autem",
// "completed": false
// }

2. Vue

Vue is a package that does all of your DOM manipulation for you. It's amazing, and is my tool of choice for any new projects.

1. Nuxt

Nuxt provides SSR for Vue. It also includes easier components, single file pages, layouts, and more.


© 2021 GrahamSH