Put all these on the prototype, like so:

```javascript
Stats.prototype.isFile = function() {
  return this.type === constants.MODE_FILE;
};
```