If you require('./foo.js') from /beep/boop/bar.js, node will
look for ./foo.js in /beep/boop/foo.js. Paths that start with a ./ or
../ are always local to the file that calls require().
But I don't think it makes sense to say it searches for
foo.js in foo.js here, so I've updated it to read:
If you require('./foo.js') from /beep/boop/bar.js, node will
look for foo.js in /beep/boop. Paths that start with a ./ or
../ are always local to the file that calls require().
Not sure if you want it to be /beep/boop/ rather than /beep/boop?
In
readme.markdown
, it states:But I don't think it makes sense to say it searches for
foo.js
infoo.js
here, so I've updated it to read:Not sure if you want it to be
/beep/boop/
rather than/beep/boop
?