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

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

Copyright © 2008-present Brendan Graetz