SAMBER VALLEY's Blog


This blog is a selection of articles aligned with Samber Valley's vision.

Our vision: Mobile web apps will seriously compete with native apps, Mobile web will be based on HTML5 / CSS3 / Javascript, Javascript will also power the server-side mobile web, and noSQL approach will ease the server-side mobile web.

5Cloudy is our Twitter-based newspaper dealing with HTML5 / CSS3 / Javascript / Node.js / noSQL / MongoDB, updated daily.

HTML5 Powered with Connectivity / Realtime, CSS3 / Styling, Device Access, Graphics, 3D & Effects, Multimedia, Performance & Integration, Semantics, and Offline & Storage

August 30, 2011 11:01 am
How to write and unit-test universal JavaScript modules (browser, Node.js)

Node.js has a very nice module system that is easy to understand, yet distinguishes between the exports of a module and things that should be private to it. This post explains how the code of a Node.js module can be modified so that it works on both Node.js and web browsers. It also explains how to unit-test such code.

  1. wactbprot reblogged this from sambervalley and added:
    I waited for something like this
  2. sambervalley posted this