Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ilevd/ns-sort

Leiningen plugin for sorting Clojure namespaces.
https://github.com/ilevd/ns-sort

clojure leiningen namespace sorting

Last synced: 5 days ago
JSON representation

Leiningen plugin for sorting Clojure namespaces.

Awesome Lists containing this project

README

        

# ns-sort

A Leiningen plugin to sort namespaces in `:require` block.

[![Clojars Project](https://img.shields.io/clojars/v/ns-sort.svg)](https://clojars.org/ns-sort)

## Description

![ns-sort](docs/ns-sort.png?raw=true "ns-sort")

The plugin sort namespaces in `:require` block with lexicographic order.

The project namespaces have more priority compared with other 3rd party dependencies.

The plugin supports `.clj`, `.cljs`, `.cljc` files.

## Usage

Put `[ns-sort "1.0.3"]` into the `:plugins` vector of your `:user` profile.

Use this for project-level plugins:

Put `[ns-sort "1.0.3"]` into the `:plugins` vector of your project.clj.

Run:

$ lein ns-sort

## License

Copyright © 2022 ilevd