Check to see if the catalog has a version for the given entity.
@example
import utils from'@eventcatalog/utils'; const{ entityHasVersion }=utils('/path/to/eventcatalog'); // returns true if version is found for the given entity and version (supports semver) awaitentityHasVersion('User','0.0.1'); awaitentityHasVersion('User','latest'); awaitentityHasVersion('User','0.0.x');
Check to see if the catalog has a version for the given entity.