Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/valentin271/jisort
Javascript / Typescript import sorter
https://github.com/valentin271/jisort
import javascript linter sort typescript
Last synced: 19 days ago
JSON representation
Javascript / Typescript import sorter
- Host: GitHub
- URL: https://github.com/valentin271/jisort
- Owner: Valentin271
- License: mit
- Created: 2023-08-19T18:08:38.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-22T14:39:43.000Z (over 1 year ago)
- Last Synced: 2024-04-27T22:40:58.445Z (8 months ago)
- Topics: import, javascript, linter, sort, typescript
- Language: Rust
- Homepage: https://crates.io/crates/jisort
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jisort
A **J**avaScript / Typescript **i**mport **sort**er.
Originally built specifically for [JVS](https://www.groupe-jvs.fr/).# Usage
## Basic usage
Just running `jisort` will search and sort files recursively from the current folder.
You can alter that behavior by specifying the folder you want to sort with `jisort `.You can also run it against a single file with `jisort `.
## Options
You can use the `--globs` option to override the default ones.
The default globs match every `js`, `jsx`, `ts` or `tsx` file.## Included files
jisort will include:
- Hidden files
- Files matching the given globs (except if they are in the following category)jisort will **not** include:
- Files listed in `.gitignore` (see full list [here](https://docs.rs/ignore/0.4.20/ignore/struct.WalkBuilder.html))
- Files under hidden dirs**NOTE:** List included files with `jisort --list`.
## Help
See `jisort --help` for all options and documentation.
# Installation
| Method | Command |
|---|---|
| cargo | `cargo install jisort`|
| source | `cargo install --git https://github.com/Valentin271/jisort`|## Pre-compiled binaries
You can download the appropriate binary for your platform [on the release page](https://github.com/Valentin271/jisort/releases/latest).