Node.jsã®child_process.spawn()ã§ã¨ãã£ã¿ãèµ·åããå ´åã«åä½ãä¸å®å®ã«ãªãã¨ããåé¡ããã£ãã®ã§è§£æ±ºæ¹æ³ãè¨é²ã æåã¯ä»¥ä¸ã®ãããªã³ã¼ãã§ã¨ãã£ã¿ãèµ·åãã¦ãã¾ããã(å®éã«ã¯ãã¹ãããã³ã¼ã«ããã¯ã®ä¸ã§å¼ã³åºããã) var editFile = function(file, cb) { var editor = process.env.EDITOR || 'vim'; var child = spawn(editor, [file], { cwd : process.cwd(), customFds : [process.stdin, process.stdout, process.stderr] }); child.on('exit', function() { cb(); }); }; ããã以ä¸ã®ããã«ãstdin(WritableStream)ã«å¯¾
{{#tags}}- {{label}}
{{/tags}}