How to Create an NPM Package
This is a quick guide to creating a Node.js package for npm. Full package.json documentation available from npmjs.com.
Advertisement
Advertisement
This is a quick guide to creating a Node.js package for npm. Full package.json documentation available from npmjs.com.
This is the very basics of using Socket.io.
Two other articles that may be relevant:
You need socket.io
at a minimum. The others are optional.
To implement WebSockets, you need a client and a server. Ws.js is a library for Node.js that lets you create servers. For the client side, we'll use the native WebSocket object in the browser.
You need to install the ws
package with npm
first:
This is a quick overview of a very simple express.js app.
npm install --save express ejs
The ejs
package is for simple HTML templates.
Read more at https://expressjs.com/en/starter/generator.html.
This will guide through the steps to install Lutris for gaming on Debian Linux. I followed these steps using Debian 11 to play StarCraft 2 and other games.
When installing Debian or other Linux distributions as a guest in VirtualBox, you should install the guest additions for better integration. This allows shared clipboard, screen resizing, and more.
This tutorial will cover setuptools
and how to package libraries and applications
for pip
, https://pypi.org, and distribution to others.
Let's walk through the process of building Node.js from source.
I'll be demonstrating this on Debian 10 Buster. The current version of Node.js in the Debian repository is v10.24.
I'm going to download the newest version 15 and build it. When I'm done, I'll have the latest version node
and npm
executables installed on my system.
Advertisement
Advertisement