A number of packages on npm seem to use require function in the following way:
var CounterActions = require('../actions/counter');
instead of this:
var CounterActions = require('mypackage/actions/counter');
Why is that? I can see no upsides, and it makes it very hard to move the file to another location. Plus it is harder to read the code since you don't know what the require is referring to (e.g. require("../../../../../../index.js")
)