DailyJS

Node Roundup: io.js 1.8.1, ioredis, fetchival

Alex R. Young

Subscribe

@dailyjs

Facebook

Google+

Node Roundup: io.js 1.8.1, ioredis, fetchival

Posted by Alex R. Young on .
Featured

Node Roundup: io.js 1.8.1, ioredis, fetchival

Posted by Alex R. Young on .

io.js 1.8.1

io.js 1.8.1 has been released. As always the changelog is concise and informative. You might want to update to this release if you use npm's new scoped modules -- there's a fix for scoped packages with peerDependencies.

npm Private Modules and Heroku

I've started moving my old private modules that I deployed using GitHub and OAuth tokens to npm Private Modules, and so far it's worked well. To make this work with Heroku I still had to set a token for Heroku to be able to access my modules through npm -- I found a post that explains how to do this here: npm Private Modules with Heroku.

ioredis

ioredis (GitHub: luin/ioredis, License: MIT, npm: ioredis) is a Redis client used by Alibaba. It works with Node callbacks (err, result) and promises.

The authors describe it as more robust than the redis package, and the benchmarks show that it's faster as well. It supports binary data, and ES6 types like Map and Set. It also has several other advantages over the node_redis module, so you should definitely test it out if you depend on Redis.

fetchival

Typicode sent in fetchival (GitHub: typicode/fetchival, License: MIT, npm: fetchival), a module for making fetch requests with JSON. Fetch is a function for making web requests with promises, based on the Fetch spec. Fetchival makes posts a lot easier to read:

fetchival('/users').post({  
  name: 'Typicode',
  login: 'typicode'
})
.then(function(json) {
  // ...
})

Naturally this works in Node, but it should also work in browsers as well, which makes it a very clean alternative to other XMLHttpRequest wrappers.