MP3ãã¡ã¤ã«ããã¦ã³ãã¼ã å å®¹ç´¹ä» yosuke_furukawaãããã²ã¹ãã«ãBunã®çããBunã®ããã©ã¼ãã³ã¹æ¯è¼ãNode.jsã¨Bunã¨ã®IOå®è£ ã®éããªã©ã«ã¤ãã¦èªã£ã¦ããã ããã¨ãã½ã¼ãã§ãã åºæ¼è 話ãããã¿ Bunã¯ã©ããã課é¡æãæã£ã¦ç»å ´ãã¦ããï¼ Node.jsã®3åéãã¨ãã主張 ããã©ã¼ãã³ã¹æ¯è¼æã«ãããZigã¨JavaScriptå®è£ ã®å·® ã©ã¤ãã©ãªã®ãã¼ã±ãã£ã³ã°æ¦ç¥ libuv ã¨ã¯ï¼ OS ã®éãã«ãããå®è£ é ãºãæ¦ç¥ Bun 㯠libuv ãå©ç¨ãã¦ããªã Macåãã«kqueueãLinuxåãã«io_uring Bun ã®Productionå©ç¨ã¯? honojs/hono ãã®å¾ãæ¥çã¯ã©ã®ããã«å¤ãã£ã¦ããï¼ ä¸å½å¿ JSConf JP æ¡ç¨: NIJIBOX æ¡ç¨: ãªã¯ã«ã¼ã
TechFeed Experts Night Pick up Bunãã¡ã¼ã¹ãã¤ã³ãã¬ãã·ã§ã³ - JavaScriptã©ã³ã¿ã¤ã çã«â赤å£ã®æ¦ãâã! ï½TechFeed Experts Night#8è¬æ¼ãã æ¬è¨äºã¯ã2022å¹´11æã«éå¬ããããTechFeed Experts Night#8 ï½ JavaScriptã©ã³ã¿ã¤ã æ¦äºæåç·ãã®ã»ãã·ã§ã³æ¸ãèµ·ããè¨äºãBunãã¡ã¼ã¹ãã¤ã³ãã¬ãã·ã§ã³ - JavaScriptã©ã³ã¿ã¤ã çã«â â赤å£ã®æ¦ãâ âã!ãã転è¼ãããã®ã§ãããªãªã¸ãã«ã¯TechFeedãã覧ãã ããã Japan Node.js Associationã®çäºããã¦ãã¾ããå¤å·ã¨ç³ãã¾ããã½ã¼ã·ã£ã«ã®IDã¯ãã¡ãã«ãªãã¾ãã Twitter GitHub JSConf JPã2022å¹´11æ26æ¥ã«éå¬äºå®ã§ãä»åã®ãã¼ãã§ããNode.JS / Deno /
Intro ã¡ããã©ã¿ã³ãã¼ã®å罪ãæµè¡ã£ã¦ãã®ã§ãã®ã¿ã¤ãã«ã«ãããã©çµæ§æ°ã«å ¥ã£ã¦ãã d.potato4d.me ãã®è©±ãèªãã§ã®ææ³ã¨ããã¾ã§å¤§ãããªã£ã Node.js ã®æ¯ãè¿ãããããã¨æãã ã©ããªããã°ã©ãã³ã°è¨èªã§ãã£ã¦ãã¿ããªãã使ã£ã¦ããã£ã¦éçºè ããããã¼ã«ãããã¨æã£ã¦ãããã æåã¯è¯ãã£ãã¨æã£ã¦ãæ©è½ããªããå¤èããªã£ãããä»ã«ã¯ã¼ã«ãªæ©è½ãæã£ããã®ãç»å ´ãããã¨ã«ãã£ã¦å¾ã ã«é£½ãããã¦ãããæçµçã«ä»ã®è¨èªã«ä¹ãæããããã ã¾ãã©ããªè¨èªãåãã ã¨æããCè¨èªã ã£ã¦çã¾ããå½åã¯ãããã¯ã¼ã«ã§ã¿ããªããããã¼ã«ãã¦ããä»ä¸åº¦ãæ¦ãããã°ã©ãã¼ããèªãã§ãããC++ãåºã¦ãã¦ãå¨ãã®ã¨ã³ã¸ãã¢ã C++ ã使ããã¨ããã·ã¼ã³ãåºã¦ãããããã§ãããããªã®ä½¿ã£ã¦ä½ãè¯ããã ãCã§ååã ããã¨Windows NT éçºãªã¼ãã¼ã®ãã¼ãã«ãã©ã¼ãè¨ã£ã¦ãããã
ããåãã®ç©èªã§ãããåã¨åã®ç©èªã§ãããããããªãã æ°æ¥åãå人ãè¨ã£ãããä¹ ãã¶ãã« Rails ãæ¸ããããã©ãNode.js ã®è¯ãã«æµããªããã¨ã ãã®è¨èã«åæããªããããä»æ¹ã§å°ãä¸æè°ã«æãã ãã¤ããåã㯠Node.js ãã使ããªããªã£ãã®ããããã ã話ãã¦ãã Rails ãªã©ã®å¤ãã® Web æè¡ã«ã¨ããããªããªã£ãã®ããã¨ã ãã¡ããã使ããªãã¨ããããã§ã¯ãªãã寧ãä»ç¾å½¹ã§ååãªæ´»èºããã¦ããããã³ãã¨ã³ãã®äººéã¯ãçããçã主役ã§ããããã¯ã¨ã³ãã®ãµãã¨ãã¦åå¨ããããã³ãã¨ã³ãããçµé¨ãã¦ãã¦ããã æ¸ããã¨æãã°æ¸ãããã ããã®ä¸ã§ãæ¢ãã¦ããã³ãã¨ã³ãã¨ãã®æè¡ãé¸ãã§ããã ã ãã©ä»ã¯ã©ãã ãããããã³ãã¨ã³ãã¨ã³ã¸ãã¢ã¯ãã¯ããJavaScript ãæ±ãã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢ãã¨ãªããä¸è¬çãªããã¯ã¨ã³ãã¯å¿è«ãNode.jsãä¸ç´å¸æ°ã¨ãã¦å
Volta ã¨ã¯ Voltaã¨ã¯ãJavaScript ãã¼ã«ããã¼ã¸ã£ã¼ã§ãã ã¿ã¤ãã«ã§ã¯ Node.js ã®ãã¼ã¸ã§ã³ç®¡çã¨ãã¦ãã¾ããã npmã»yarn ã®ãã¼ã¸ã§ã³ç®¡çãè¡ããã¨ãã§ãã¾ãã å ¬å¼ãµã¤ãã§ã¯ããThe Hassle-Free JavaScript Tool Managerï¼æéã®ããããªã JavaScript ãã¼ã«ããã¼ã¸ã£ã¼ï¼ãã¨ç´¹ä»ããã¦ãã¾ãã ãã¼ã ã® Node.js ã®ãã¼ã¸ã§ã³ç®¡çã Volta ã«çµ±ä¸ããã¨ããé常㫠DX ãä¸ãããVolta ã®æ©æµãæãã¦ãã¾ãã ãã®è¨äºã§ã¯ãéçºè ã® Volta 人å£ãå¢ããã¹ã Volta ã®ç´¹ä»ã¨ä½¿ç¨æ¹æ³ã«ã¤ãã¦è§£èª¬ãã¦ããããã¨æãã¾ãã ãªããªã詳ãã解説ãã¦ããæ¥æ¬èªã®ã½ã¼ã¹ã¯ãªãã®ã§ãå ¬å¼ããã¥ã¡ã³ããèªãã§é©å®å訳ãã¦ãã¾ãã å ¬å¼ããã¥ã¡ã³ããèªãã®ãããã©ãããã¨ãã人ã«èªãã§ããã ã
â¡ Fast Install and run any JS tool quickly and seamlessly! Volta is built in Rust and ships as a snappy static binary. â¡ Reliable Ensure everyone in your project has the same toolsâwithout interfering with their workflow. â¡ Universal No matter the package manager, Node runtime, or OS, one command is all you need: volta install.
åãNode.jsãç±å¿ã«åå¼·ãã¦ããé ã«ãã¹ã¼ãã¼ããã°ã©ãã¨ãã¦æ§ãã¦ãã人ãã¡ããä»ä½ããã£ã¦ããã®ã調ã¹ã¦ã¿ã¾ããã github.com Express.jsãªãããä½ã£ã¦ããtjã¯ãGoè¨èªãã¡ã¤ã³ã«æ¸ãã¦ããããã§ãã OSSæ´»åèªä½ãã¾ããã£ã¦ããªãããã§ãã github.com Browserifyãã¤ãã£ã¦ããsubstackã¯ã主ã«rustãæ¸ãã¦ããããã§ãã ãµã¼ãã¼ãæ¸ãã¦ãã人ã¯Goè¨èªã«ãCLIãæ¸ãã¦ãã人ãrustã«è¡ãã®ããããã¾ããã github.com Babelãæ¸ãã¦ããsebmckãrustã§ãã github.com Rad Vaggã¯Goè¨èªã¨Pythonã®ããã§ãã github.com tjfontaineã¯OSSæ´»åãã»ã¨ãã©ç¡ããªã£ã¦ãã¾ãã ããããã¯Node.jsãå»ã£ã¦ããªã人ãã¡ã§ãã github.com Guill
package.jsonã®resolutionsãã£ã¼ã«ãã使ããã¨ã§ãä¾åããªã¼ã®æ·±ãé¨åã«ããããã±ã¼ã¸ã®ãã¼ã¸ã§ã³ãåºå®ãããã¨ãå¯è½ã«ãªãã ç¾å¨ã®ã¨ãã Yarn ã§ã®ã¿ä½¿ããæ©è½ã ãããµã¼ããã¼ãã£ãå ¬éãã¦ããã©ã¤ãã©ãªã使ããã¨ã§ npm ã§ã使ããããã«ãªãã åä½ç¢ºèªã«ä½¿ã£ã npm ã®ãã¼ã¸ã§ã³ã¯6.14.5ãYarn ã¯1.22.4ã å¾è¿°ããnpm-force-resolutionsã«ã¤ãã¦ã¯ã0.0.3ã使ã£ã¦ããã npm ã Yarn ã§ããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ããã¨ãæå®ããããã±ã¼ã¸ã ãã§ãªãããã®ããã±ã¼ã¸ãä¾åãã¦ããããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ãããã ãããã¦ã¤ã³ã¹ãã¼ã«ãããããã±ã¼ã¸ãä»ã®ããã±ã¼ã¸ã«ä¾åãã¦ããã°ããã®ããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ããããããç¹°ãè¿ããã¦ããã ãã®ä»çµã¿ã«ã¤ãã¦ã¯ã以ä¸ã®è¨äºã§è©³ãã触ããã numb86-tech
Deno ver 1.0 5æ13æ¥ãDeno v1.0ã®æ£å¼ãªãªã¼ã¹ã決å®ãã¾ããã å°ãåå¼·ãã¦ã¿ã¾ãããã â ãããã Denoã£ã¦ãªã«ï¼ Denoã¯Node.jsã®è£½ä½è ã§ããRyan Dahlã«ãã£ã¦ä½ããã¾ãããæ°ããJS/TSã©ã³ã¿ã¤ã ã§ã Denoã¯defaultã§å®å ¨ã§ãï¼è¨±å¯ãªãã§ã¯ãã¡ã¤ã«ã»ãããã¯ã¼ã¯ã»ç°å¢ã«ã¢ã¯ã»ã¹ã§ãã¾ããï¼ Denoã¯TypeScriptããã«ãã¤ã³ã§å ¥ã£ã¦ã¾ã å¤é¨ããã±ã¼ã¸ã¯urlã§ã¤ã³ãã¼ãã§ãã¾ãï¼Goã¿ããã«ï¼ ãã£ã¼ãã£ã¦èªããããï¼ããã§ã¯ãªãï¼ Denoãä½ãããèæ¯ ä¸å¹´åãããã«ãã®åç»ãè¦ããã¨ãæãåºãã¾ããã Node.jsã®ä½è ã§ããRyan DahlããNode.jsãéçºããå½æã®ä»æ§ãå¾æããæ¨ã®åç»ã§ãã https://www.youtube.com/watch?v=M3BM9TB-8yA&t=1319s
è¿å¹´ã® Node.js 㯠API ã®ãµã¼ãã¨ãã¦ã¯ãã¡ãããNuxt.js ã Next.js ã¨ãã£ã SSR ã BFF ãªã©ããã³ãã¨ã³ãã®ããã®ããã¯ã¨ã³ãè¨èªã¨ãã¦ã®äººæ°ãé«ã¾ã£ã¦ãã¾ãã ããã³ãã¨ã³ãã¨ã³ã¸ãã¢ãã³ã³ããã¹ãã¹ã¤ããå°ãªãããã¯ã¨ã³ãã®æ´åãã§ãããã¨ã¯é常ã«å¤§ããªå©ç¹ã§ãã ã§ãããããã³ãã¨ã³ãï¼ãã©ã¦ã¶å´ï¼ã¨ããã¯ã¨ã³ãï¼ãµã¼ãå´ï¼ã§ã¯ããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°ã§è¦ãã¹ãç¹ã大ããéãã¾ãã ããã Node.js ã¢ããªã±ã¼ã·ã§ã³ã®ããã©ã¼ãã³ã¹ã¤ã·ã¥ã¼ã®è¦ã¤ãæ¹ãªã©ãã¾ã¨ã¾ã£ã¦ããè³æã¯å°ãªãã§ãã ããã§ãæ¬è¨äºã§ã¯ããã³ãã¨ã³ãã¨ã³ã¸ãã¢ã Node.js ã§ããã©ã¼ãã³ã¹ã¤ã·ã¥ã¼ãè¦ã¤ããæ¹åããããèªåãæ®æ®µããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°ãä¾é ¼ããã¦ããã¨ãã«ã¿ã¦ããåºç¤çãªãã¤ããã¾ã¨ãã¦ããã¾ãã 1. è¨æ¸¬ã¹ãããlink Node.js
ãã®1. æå°éã®å®è£ 極å°ã®å®è£ ï¼ã»ãã·ã§ã³éå©ç¨ãã¦ã¼ã¶ãã¼ã¿ã¯åãè¾¼ã¿ï¼ã§ä½æã app.postã§ã¯ãªããrouter.postã§ãã£ã¦ããã Passportã«æ¸¡ããã©ã¡ã¼ã¿ãæ£ããã確èªããããããªã¯ã¨ã¹ãããã£ãã³ã³ã½ã¼ã«ã«è¡¨ç¤ºããã æåã®è§£èª¬ express ãããhttp://localhost:3000/ ã¸ã®ãªã¯ã¨ã¹ãã indexã«ã¼ã¿ ã§å¦çã passportã«ãã©ã¡ã¼ã¿ã渡ããããapp.use(express.urlencoded( { extended: false }))ãå¿ è¦ã èªè¨¼ãæåããå ´åãpassportããã«ã¦ã§ã¢ã¯ãªã¯ã¨ã¹ããããã«req.userãã»ãããã次ã®ã³ã¼ã«ããã¯ã«å¦çã渡ãã åä½ã確èªããã®ãç®çãªã®ã§ãèªè¨¼å¤±ææã®ãã¼ã¸ã¯å®è£ ãã¦ããªãã å®è£ const express = require('express'); c
Node.jsã§Unhandled Rejectionsãçºçãã¦processãçµäºããã¨ãExit Statusã0ã¨ãªãåé¡ã¨ãã®å¯¾çã«ã¤ãã¦ã®ã¡ã¢ã§ãã 追è¨ï¼ Node.js 15+ããUnhandle Rejectionãçºçããã¨ããã»ã¹ãExit Status 1ã§çµäºããåä½ãããã©ã«ãã¨ãªãã¾ãã Node.js v15ã§ã¯unhandled rejectionã§ããã»ã¹ãã¨ã©ã¼çµäºãã äºåç¥è: Async Functionã¯Promiseãè¿ãé¢æ°å®ç¾©ã§ãã ãã®è¾ºã«ã¤ãã¦è©³ããã¯æ¬¡ã®ãµã¤ããèªãã§ãã ããã JavaScript Promiseã®æ¬ éåæå¦ç:ã³ã¼ã«ããã¯/Promise/Async Function · JavaScript Primer #jsprimer ä»åã®ãµã³ãã«ã³ã¼ãã¯æ¬¡ã®ãªãã¸ããªã«ããã¾ãã azu/unhandled-rej
Nodeå¦åã§çºè¡¨ãã JavaScript Package Manager ã®è©±ã§ãã
ããã¯ãnode.js on Docker ã®æ§æ㧠2ã3æ¥ããã£ã¦ãã¾ã£ãæã®è©±ã§ããå¿ããªãããã«è¨é²ãã¦ããã¾ãããªããå°æ¥ã¯æ¹åã»æ¹è¯ããã¦ããããããã¾ããã®ã§ã注æãã ããã ä½ãèµ·ãã£ãã®ã node.js ã® Docker ã³ã³ãããã"docker stop" ã§ã³ã³ãããæ¢ãããã¨ãã¦ãæ£å¸¸ã«åæ¢ããã10ç§ãããçµéããå¾ã«å¼·å¶çµäºãã¦ãã¾ãã¨ããçç¶ãçºçãã¾ããããã¤ãçãããããªãã®ã§ãç¶æ ã¨ãã¿ã¤ãã³ã°ã¨ããããã£ãè¦å ã§ã¯ãªããããããæ ¹æ¬çã«ä½ããããããã¨èãããã¾ãã 1. node on Docker ã®æ§æ Docker ã³ã³ããä¸ã§ node.js ãåãã¦ããã ãã®æ¥µãã¦ã·ã³ãã«ãªæ§æã§ãã®åé¡ãçºçãã¾ããã node.js ã§åãã¢ããªã¯ã"Hello World" ãåºãã ãã®è¶ ç°¡å㪠hello.js ã§ãããããªæãã§ãã cons
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}`);
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}