@corvina/oci-validations
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

OCI Validations

This is a small library that provides a set of validation functions for repository name, tag, and project in OCI.

import { validateRepositoryName, validateTag, validateProject } from '@corvina/oci-validations';

const repositoryName = 'my-repo';
if (!validateRepositoryName(repositoryName)) {
  console.error('Invalid repository name');
}

const tag = 'latest';
if (!validateTag(tag)) {
  console.error('Invalid tag');
}

const project = 'my-project';
if (!validateProject(project)) {
  console.error('Invalid project');
}

Readme

Keywords

Package Sidebar

Install

npm i @corvina/oci-validations

Weekly Downloads

5

Version

1.0.6

License

ISC

Unpacked Size

7.7 kB

Total Files

8

Last publish

Collaborators

  • ambroff
  • fabiofiorio
  • arrigo.zanette
  • marcello.bellomi
  • zanettea