DailyJS

Node Roundup: io.js 1.6.4, npm Semver Calculator, mongots, Join-io

Alex R. Young

Subscribe

@dailyjs

Facebook

Google+

libraries web node modules express middleware

Node Roundup: io.js 1.6.4, npm Semver Calculator, mongots, Join-io

Posted by Alex R. Young on .
Featured

libraries web node modules express middleware

Node Roundup: io.js 1.6.4, npm Semver Calculator, mongots, Join-io

Posted by Alex R. Young on .

io.js 1.6.4, npm Semver Calculator

io.js 1.6.4 is out, as always check the io.js changelog for more details. According to the changelog, the notable changes in this version are fixes for openssl, timers, and some changes to make it build for Android devices.

Understanding semantic versions

In npm Weekly, #11, a really cool semantic versioning calculator is mentioned. If you've been writing versions like ~1.1.0 but don't completely understand what this means, the calculator will show you which versions the string refers to. The source is available here: GitHub: npm/semver.npmjs.com, and works using Browserify, Angular, and npm build scripts.

It uses npm-registry-cors-proxy.herokuapp.com to fetch package metadata rather than directly hitting npm. Presumably that's because npm's web API doesn't have JSONP or CORS (yet?).

mongots

If you're interested in MongoDB and TypeScript, then take a look at Prabhu Subramanian's mongots (GitHub: prabhu/mongots, License: MIT). The author says it supports everything MongoJS does and passes the same tests. It's not yet available on npm -- he's working on a stable version before releasing it.

Join-io

Most of us concatenate scripts to reduce request counts, but what about piping them? Join-io (GitHub: coderaiser/join-io, License: MIT, npm: join-io) is a middleware component that allows you to specify script or link paths like this: /join:/lib/client.js:/lib/util.js:/lib/jquery.js. When this hits your Express server, join-io will stream each file to the browser.

The author has built this module on top of files-io, which is a more generalised API for piping collections of files. And, naturally, files-io is written with pipe-io!