Skip to content

Find the full path of a protofile in the nearest 'protos' directory

Notifications You must be signed in to change notification settings

parkhub/proto-finder

Repository files navigation

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

About

Find the full path of a protofile in the nearest 'protos' directory

Resources

Stars

Watchers

Forks

Packages

No packages published