Determining which project a file belongs to (NodeJs or Bower)

— 1 minute read

Published a small, but hopefully useful, package to npm today, to scratch this itch:

Q: Given the full path relative of a file, how do you determine what project it belongs to?

A: project-of-file

Hope you find it useful!

project-of-file NPM