当前位置: 首页 > news >正文

nodejs一周动态(2011-04-25 - 05-01)

本文收集一周来业界关于nodejs的相关动态信息和新闻摘要,并会推荐一下非常棒的node.js模块。

Mozilla jumps into Node.js server project

Mozilla也对Node.js感兴趣了,已经着手为Node.js提供V8以外的另一个引擎:
SpiderNode: This JavaScript engine in Firefox is called SpiderMonkey, and the hybrid technology used in SpiderNode is called V8Monkey

Node.js is built with the V8 JavaScript engine from Google's Chrome browser, but Mozilla is transplanting Firefox's JavaScript technology in a project called SpiderNode. (The JavaScript engine in Firefox is called SpiderMonkey, and the hybrid technology used in SpiderNode is called V8Monkey.)

Build Desktop Apps with Node.js Using WebApp

Node.js contributor Tim Caswell pushed an initial release of WebApp, a framework for building desktop GUI apps with Node.js, to GitHub. The stated goal is to "Give node developers a way to have a desktop GUI to their node servers using HTML5 + CSS3 as the GUI platform."
Node.js也可以开发桌面程序!

Node v0.4.7 release

  • Don't emit error on ECONNRESET from read() #670
  • Fix: Multiple pipes to the same stream were broken #929 (Felix Geisendörfer)
  • URL parsing/formatting corrections #954 (isaacs)
  • make it possible to do repl.start('', stream) (Wade Simmons)
  • Add os.loadavg for SunOS (Robert Mustacchi)
  • Fix timeouts with floating point numbers #897
  • Improve docs.

Download: http://nodejs.org/dist/node-v0.4.7.tar.gz
Website: http://nodejs.org/docs/v0.4.7/
Documentation: http://nodejs.org/docs/v0.4.7/api

Cluster Live

TJ Holowaychuk released Cluster Live (GitHub: visionmedia / cluster-live, MIT License), which is a realtime administration and statistics plugin for Cluster. If you’ve been holding off on Cluster, this is probably the sort of usage TJ envisioned for it and may convince you to use it.

你只需要一点点配置代码,就可以使用了,很cool吧!:

var live = require('cluster-live');

cluster(server)
  .set('workers', 6)
  .use(cluster.debug())
  .use(cluster.stats({ connections: true, lightRequests: true }))
  .use(live())
  .listen(3000);

截图

687474703a2f2f662e636c2e6c792f6974656d732f3045306530513161336a317233723335334731592f53637265656e73686f742e706e67

Capsule

Capsule (MIT License) by Henrik Joreteg is a Node framework that uses Socket.io and Backbone.js to synchronise models between the client and server. He’s written some documentation for Capsule.models.js and Capsule.views.js, and the README includes a detailed example of how to set things up for the server and browser.

node-http-proxy

node-http-proxy:
一个基于nodejs全功能http代理
A full-featured http proxy for node.js

Features

  • Reverse proxies incoming http.ServerRequest streams
  • Can be used as a CommonJS module in node.js
  • Uses event buffering to support application latency in proxied requests
  • Reverse or Forward Proxy based on simple JSON-based configuration
  • Supports WebSockets
  • Supports HTTPS
  • Minimal request overhead and latency
  • Full suite of functional tests
  • Battled-hardened through production usage @ nodejitsu.com
  • Written entirely in Javascript
  • Easy to use API

When to use node-http-proxy

Let's suppose you were running multiple http application servers, but you only wanted to expose one machine to the internet. You could setup node-http-proxy on that one machine and then reverse-proxy the incoming http requests to locally running services which were not exposed to the outside network.

npm 1.0: Released

npm 1.0 has been released. Here are the highlights:

  • Global vs local installation
  • ls displays a tree, instead of being a remote search
  • No more “activation” concept – dependencies are nested
  • Updates to link command
  • Install script cleans up any 0.x cruft it finds. (That is, it removes old packages, so that they can be installed properly.)
  • Simplified “search” command. One line per package, rather than one line per version.
  • Renovated “completion” approach
  • More help topics
  • Simplified folder structure

相关文章:

  • Cocos2d-x之物理世界(物体之间的碰撞)
  • 在CentOS安装配置OpenMeetings。
  • 随手记
  • 服务器报E0D76错误代码
  • MongoDB 安装 Windows XP
  • 浅谈定制化OA突破传统OA瓶颈
  • 51CTO下载-HP+BL20p刀片服务器安装图解
  • 3361: [Usaco2004 Jan]培根距离
  • 从Hadoop URL中读取数据
  • appfuse code gen
  • 在Ubuntu上为Android系统编写Linux内核驱动程序(老罗学习笔记1)
  • 通过命令行指定监听的IP和端口
  • 开始学习bootstrap!
  • .NET导入Excel数据
  • suse linux10主机添加默认路由
  • [译] React v16.8: 含有Hooks的版本
  • codis proxy处理流程
  • gops —— Go 程序诊断分析工具
  • in typeof instanceof ===这些运算符有什么作用
  • Js基础知识(四) - js运行原理与机制
  • Laravel5.4 Queues队列学习
  • Logstash 参考指南(目录)
  • Markdown 语法简单说明
  • orm2 中文文档 3.1 模型属性
  • python 学习笔记 - Queue Pipes,进程间通讯
  • React-redux的原理以及使用
  • Redis 中的布隆过滤器
  • TypeScript实现数据结构(一)栈,队列,链表
  • Vue2 SSR 的优化之旅
  • webgl (原生)基础入门指南【一】
  • 闭包--闭包作用之保存(一)
  • 技术攻略】php设计模式(一):简介及创建型模式
  • 前端面试之闭包
  • 手写一个CommonJS打包工具(一)
  • 无服务器化是企业 IT 架构的未来吗?
  • 小试R空间处理新库sf
  • 一份游戏开发学习路线
  • 用element的upload组件实现多图片上传和压缩
  • 用mpvue开发微信小程序
  • LevelDB 入门 —— 全面了解 LevelDB 的功能特性
  • Python 之网络式编程
  • 分布式关系型数据库服务 DRDS 支持显示的 Prepare 及逻辑库锁功能等多项能力 ...
  • ​LeetCode解法汇总1410. HTML 实体解析器
  • #Linux(make工具和makefile文件以及makefile语法)
  • (10)ATF MMU转换表
  • (2/2) 为了理解 UWP 的启动流程,我从零开始创建了一个 UWP 程序
  • (2009.11版)《网络管理员考试 考前冲刺预测卷及考点解析》复习重点
  • (DenseNet)Densely Connected Convolutional Networks--Gao Huang
  • (阿里巴巴 dubbo,有数据库,可执行 )dubbo zookeeper spring demo
  • (编译到47%失败)to be deleted
  • (第61天)多租户架构(CDB/PDB)
  • (附源码)计算机毕业设计SSM在线影视购票系统
  • (简单有案例)前端实现主题切换、动态换肤的两种简单方式
  • (考研湖科大教书匠计算机网络)第一章概述-第五节1:计算机网络体系结构之分层思想和举例
  • (力扣记录)235. 二叉搜索树的最近公共祖先