https://github.com/ferdodo/exportcase
https://github.com/ferdodo/exportcase
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ferdodo/exportcase
- Owner: ferdodo
- Created: 2025-04-20T21:49:09.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-09-28T18:04:18.000Z (9 months ago)
- Last Synced: 2025-09-28T20:25:14.259Z (9 months ago)
- Language: Rust
- Homepage: https://ferdodo.github.io/exportcase/
- Size: 1.36 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# exportcase
[](https://www.npmjs.com/package/exportcase)
[](https://www.npmjs.com/package/exportcase)

[](https://ferdodo.github.io/exportcase)
Opinionated file name validator for TypeScript.
## Features
- Enforces typescript file name based on ESM exports.
- Support TSX files.
- Zero config.
## Installation
```bash
npm install --save-dev exportcase
```
## Usage
```bash
$ npx exportcase --help
A TypeScript validator that ensures file names match their exported name
Usage: exportcase [COMMAND]
Commands:
check Check TypeScript files in the specified directory
format Generate a bash script to rename files according to their exports
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
```
## Checking files
```bash
exportcase check ./src
```
## Validation Rules
Validation rules are documented at https://ferdodo.github.io/exportcase