jeffreyveon jeffreyveon - 4 months ago 16
Node.js Question

Node.js - require empty path

I came across this file on github, which does this:

var migrate = require('../')


What does that mean? When I tried the same, I get:
Error: Cannot find module '../'

Answer

It requires the file index.js of the parent folder, which is this one: https://github.com/visionmedia/node-migrate/blob/master/index.js