I know npm looks for a package.json in the current directory, but it also appears to find a package.json several directories above my current directory. How does this work? Does npm look at parent directories until it finds a package.json?
If so, does require() also search for a package.json when looking for modules?
Is this behavior part of npm or is it part of CommonJS?