@parkhub/proto-finder
v0.1.2
Published
Returns the full-path of a protofile in the nearest proto directory to where your application is running from.
Downloads
12
Maintainers
Keywords
Readme
Proto Finder
Find your protofiles in the nearest proto directory
Quickly find the full path to a protofile by name in the nearest 'protos' directory.
API
findSingleFile
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
findSingleFile
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