@parkhub/proto-finder

0.1.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @parkhub/proto-finder

Weekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

6.55 kB

Total Files

3

Last publish

Collaborators

  • stephemer
  • akunz_ph
  • zoefiri
  • thielt
  • daytonpe
  • realtschoegl
  • loganbfisher
  • accloudcoder
  • novym
  • justin-ben
  • gregwwalters