Find your protofiles in the nearest proto directory
Quickly find the full path to a protofile by name in the nearest 'protos' directory.
Find a protofile's full path in a 'protos' directory by searching UP from your current process.
Parameters
fileName
Examples
import protoFinder from '@parkhub/proto-finder';
const protoFullPath = protoFinder.findSingleFile('test');
Meta
- author: Daniel Olivares
Get the full path of a single file by it's name in the nearest 'protos' directory.
Parameters
fileName
String
fileName the name of the file to search for
Returns Promise<String, Error> The full path of the file's location