0.0.5 • Published 6 months ago

zeta-icon-name-checker v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

zeta-icon-name-checker

An NPM package used to check the validity of icon and category names for the Zeta Icon Library.

Usage

Check Icon Name

Used to check the validity of a single icon name. Pass in categoryName and usedNames to check for duplicate name errors.

checkIconName(
  iconName: string,
  categoryName?: string,
  usedNames?: string[]
): ZetaIconError

Check Category Name

Used to check the validity of a single category name. Only returns an error type of ErrorType.invalidChar or ErrorType.none.

checkCategoryName(categoryName: string): ZetaIconError

Reading Errors

Errors are all of type ZetaIconError. Possible error types are:

enum ErrorType {
  none,
  iconRenamed,
  invalidChar,
  reservedWord,
}

Errors all have severity levels and pre-generated messages based on their type.

0.0.5

6 months ago

0.0.42

6 months ago

0.0.41

6 months ago

0.0.4

6 months ago

0.0.36

7 months ago

0.0.35

7 months ago

0.0.34

7 months ago

0.0.33

7 months ago

0.0.32

7 months ago

0.0.31

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago