jeffreyveon jeffreyveon - 1 year ago 157
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 Source

It requires the file index.js of the parent folder, which is this one:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download