0.1.2 • Published 6 years ago

@parkhub/proto-finder v0.1.2

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

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