🎯
Focusing
-
13:39
(UTC +05:30)
Pinned Loading
-
typescript-node-project
typescript-node-project PublicNode.js project with TypeScript, Express.js, ESLint, Prettier, ts-node, nodemon, pino logger, logrotate and package.json environment specific scripts.
-
sequelize-issue-reproduction-11748
sequelize-issue-reproduction-11748 PublicReproduction of sequelize issue #11748(https://github.com/sequelize/sequelize/issues/11748)
JavaScript 1
-
Node.js child_process.spawn() method...
Node.js child_process.spawn() method example 1const { spawn } = require('child_process');
2const shellProcess = spawn('ls', ['-l', '-a']);
34shellProcess.stdout.on('data', (data) => {
5console.log(`Shell Output: ${data}`);
-
Node.js child_process.exec() method ...
Node.js child_process.exec() method example 1const { exec } = require('child_process');
23exec('ls -l -a', { cwd: process.env.HOME }, (error, stdout, stderr) => {
4if (error) {
5console.error(`exec error: ${error}`);
-
This gist demonstrates a CPU-intensi...
This gist demonstrates a CPU-intensive operation using a Node.js Express server with two endpoints: '/non-blocking-operation' and '/complex-blocking-operation'. If we attempt to run the second one then the first one in parallel, the first operation will be blocked until the second one completes. This illustrates that Node.js CPU-intensive operations. 1const express = require("express");
2const app = express();
34// Function to check if a number is prime.
5function isPrime(num) {
-
This gist demonstrates the node.js w...
This gist demonstrates the node.js worker threads example by simulating a time-consuming task. 1const { Worker, isMainThread, parentPort } = require("worker_threads");
23if (isMainThread) {
4console.log("Main thread started.");
5
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.