Member predicate FilePath::getPackagePrefix
Gets the NPM package name from the beginning of the given import path.
Has no result for paths starting with a . or /
For example:
foo/barmaps tofoo@example/foo/barmaps to@example/foo./foomaps to nothing.