Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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