以åãPerlã«ãããã³ã¼ãã¡ããªã¯ã¹ã®æ¸¬å®ã«ã¤ãã¦æ¸ãã¾ããããJavaScriptã«ã¤ãã¦ã調ã¹ãã¨ããjsmeterãè¯ãããã§ãã ãªãã循ç°çè¤é度çã®ã³ã¼ãã¡ããªã¯ã¹ã¯ããã¾ã§ãå®éçãªç®å®ã§ããã絶対çãªå質ã表ããã®ã§ã¯ããã¾ãããã³ã¼ãã¬ãã¥ã¼ããªãã¡ã¯ã¿ãªã³ã°ã®å¯¾è±¡ãé¸ã¶éãªã©ã«æ´»ç¨ããã¨ããã¨æãã¾ãã ã¤ã³ã¹ãã¼ã« npmã³ãã³ãã§ã¤ã³ã¹ãã¼ã«ãã¦ãã ãããã¡ãªã¿ã«npmã«ããææ°çã¯1.0.1ã§ããjsmeter.jsããã°ã£ã¦ãã®ã§1.0.0ã使ãã¾ãã(ãããã¯ã1.0.1ã®jsmeter.jsã®47è¡ç®ã®"start();"ãåé¤ãã) npm install -g [email protected] ã³ãã³ãã¨ãã¦å®è¡ 以ä¸ã®ã¹ã¯ãªããããã¹ã®éã£ãå ´æã«ããã¾ãã ããã¦å®è¡ã $ jsmeter /path/to/source lib/Foo.js line
Nodeã®çµã¿è¾¼ã¿ã¢ã¸ã¥ã¼ã«ã»ãµã¼ããã¼ãã£ã¢ã¸ã¥ã¼ã«åããåºã使ãããã®ã EventEmitter ãªãã¸ã§ã¯ãã ããã¯Nodeã§ä½¿ããããã¶ã¤ã³ãã¿ã¼ã³ã®çé ã¿ãããªãã®ãªã®ã§ãç¥ã£ã¦ãããã°ãªããªãã ããã¥ã¡ã³ã: Events ãã©ã¦ã¶ä¸ã®JavaScript㧠addEventListener ã使ã£ã¦ã¤ãã³ãããªãã³ã®éçºãè¡ãããNodeä¸ã§ãããè¡ãã®ããã®æ©è½ãæä¾ããã®ã EventEmitterã ä¾ãã°æ¬¡ã®ããã«ä½¿ã var EventEmitter = require('events').EventEmitter; function asyncFunc() { var ev = new EventEmitter; console.log('in asyncFunc'); setTimeout(function () { ev.emit('done', 'fo
â»ãã®è¨äºã¯ç¾æç¹ã§ã® node.js ææ°ç v0.6.6 ã«ä»å±ãã npm 1.1.0-beta-4 ãå ã«ãã¦ãã¾ãã â»ééãçããã¾ããããææããã ããã¨å¹¸ãã§ãã npm 㯠node.js ã®ããã±ã¼ã¸ããã¼ã¸ã£ã¼ã§ããæå¤ã¨è²ã ãªæ©è½ãæè¼ããã¦ãã¾ãã ãman ãèªããã¨ã¯è¯ãè¨ããã¾ãããçµæ§ ããã¥ã¡ã³ã ãèªãã ãã§ã大å¤ã§ããã npm ã§ä½¿ããã³ãã³ãã¯ä»¥ä¸ã®éãã§ãã adduser 対話çã« username, password, email ãç»é²ãã¾ãã.nvmrc ã« credential ãä¿åãã¾ããå¾è¿°ã® npm star ããçºã«ã¯ãã®ç»é²ãå¿ è¦ã§ããnpm config set 㧠username, _password, email ãã»ãããã¦ããã¨ããã©ã«ãå¤ã¨ãã¦æ¡ç¨ãããï¼npm whoami ããæã«ç»é²ããã¦ã¼ã¶ã¼åã表示
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}