Is it possible to create chained methods that are asynchronous like this in node.js
File.create(\'file.jpg\').rename(\'renamed.jpg\').append(\'Hello World\')
Sure, like any JavaScript, you just return an object that has that method.
One possible layout (among many).
var File = new (function() { this.create = function(str) { return this; } this.rename = function(str) { return this; } })();