1.2.0 • Published 1 year ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Validate Font File Name

NPM Version NPM Downloads ESM Provenance CodeQL Specs Commitlint Editorconfig Prettier ESLint Remark

Table of Contents

Installation

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

Usage

Naming Convention

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

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

Example: OpenSans-SemiBold.woff2.

It's not necessary to specify the regex parameter.

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

await validateFontFileName({
  file: 'path/to/file',
  regex: /regex/ | new RegExp() | '',
});

Contributing

Please read CONTRIBUTING to start contributing.

License

This project is licensed under the MIT license.

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

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.1

2 years ago

1.0.4

2 years ago

1.0.0

2 years ago