タグ

ブックマーク / nodejs.org (2)

  • Node.js — Security Best Practices

    Security Best Practices Intent This document intends to extend the current threat model and provide extensive guidelines on how to secure a Node.js application. Document Content Best practices: A simplified condensed way to see the best practices. We can use this issue or this guideline as the starting point. It is important to note that this document is specific to Node.js, if you are looking for

    Node.js — Security Best Practices
    reboot_in
    reboot_in 2022/11/18
    “ホストごとおよび合計で開いているソケットの数を制限します。http ドキュメント、特にagent.maxSockets、agent.maxTotalSockets、agent.maxFreeSockets およびを参照してくださいserver.maxRequestsPerSocket。”
  • Child process | Node.js v22.5.1 Documentation

    Source Code: lib/child_process.js The node:child_process module provides the ability to spawn subprocesses in a manner that is similar, but not identical, to popen(3). This capability is primarily provided by the child_process.spawn() function: const { spawn } = require('node:child_process'); const ls = spawn('ls', ['-lh', '/usr']); ls.stdout.on('data', (data) => { console.log(`stdout: ${data}`);

    reboot_in
    reboot_in 2019/04/09
    “const { execFile } = require('child_process'); const child = execFile('node', ['--version'], (error, stdout, stderr) => {”
  • 1