1.2.2 • Published 9 months ago

@archoleat/validate-font-file-name v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Validate Font File Name

NPM Version NPM Downloads Specs Commitlint Editorconfig Prettier ESLint Remark

Table of Contents

Installation

bun i -D @archoleat/validate-font-file-name

Usage

import { validateFontFileName } from '@archoleat/validate-font-file-name';

await validateFontFileName({
  file: string,
  regex?: string | RegExp,
});

Naming Convention

The font family and font weight must be in Pascal Case and separated by a hyphen.

Postfixes that are allowed: Italic, Variable.

Extensions that are allowed: woff2, woff, otf, ttf.

Examples: FontFamily-Bold.woff2, FontFamily-SemiBoldItalic.woff, FontFamily-MediumVariable.otf, FontFamily-RegularItalicVariable.ttf.

Contributing

Please read CONTRIBUTING to start contributing.

License

This project is licensed under the MIT license.

1.2.2

9 months ago

1.2.1

12 months ago

1.2.0

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.1

2 years ago

1.0.4

2 years ago

1.0.0

2 years ago