jisort

Crates.iojisort
lib.rsjisort
version0.0.4
sourcesrc
created_at2023-08-22 14:53:51.098767
updated_at2023-08-22 14:53:51.098767
descriptionA JavaScript / Typescript import sorter
homepage
repositoryhttps://github.com/Valentin271/jisort
max_upload_size
id951114
size47,220
(Valentin271)

documentation

README

Jisort

A JavaScript / Typescript import sorter.
Originally built specifically for JVS.

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 <project-folder>.

You can also run it against a single file with jisort <file>.

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)
  • 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.

Commit count: 25

cargo fmt