- node.js
- Installation paths: use one of these techniques to install node and npm without having to sudo.
- Node.js HOWTO: Install Node+NPM as user (not root) under Unix OSes
- Felix's Node.js Guide
- Creating a REST API using Node.js, Express, and MongoDB
- Node Cellar Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB
- JavaScript Event Loop
- Node.js for PHP programmers
First, you go to github and type in "Dyno" (or "Yukikaze" or "Misaki" or even "RedBot"!)
You download that shit to your desktop 👌 Make sure you delete .gitignore
and package-lock.json
.
If you do not do that then you can't really say it's yours. This allows you to also upload your downloaded packages (for coding) to save Internet!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* MIT License | |
* | |
* Copyright (c) 2023-2024 Fabio Lima | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// based on https://github.com/elysiajs/elysia/blob/main/src/adapter/bun/index.ts | |
import type { ElysiaAdapter, MaybePromise } from "elysia"; | |
import { BunAdapter } from "elysia/adapter/bun"; | |
import { isNumericString } from "elysia/utils"; | |
import { ReadStream as NodeReadStream } from "node:fs"; | |
import { | |
createSecureServer, | |
type Http2ServerRequest, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env -S node | |
// WebSocket server using Node.js builtins and WHATWG Streams | |
// https://gist.github.com/robertrypula/b813ffe23a9489bae1b677f1608676c8 | |
// https://gist.github.com/guest271314/735377527389f1de6145f0ac71ca1e86 | |
import { readFileSync } from "node:fs"; | |
import { createServer } from "node:tls"; | |
import { Duplex } from "node:stream"; | |
const debugBuffer = (bufferName, buffer) => { | |
const length = buffer ? buffer.length : "---"; |