{"id":20234278,"url":"https://github.com/immoh/nsorg","last_synced_at":"2025-04-10T18:32:19.759Z","repository":{"id":41435424,"uuid":"126841716","full_name":"immoh/nsorg","owner":"immoh","description":"Clojure library for organizing ns form","archived":false,"fork":false,"pushed_at":"2020-12-22T11:37:53.000Z","size":80,"stargazers_count":13,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-20T22:04:25.915Z","etag":null,"topics":["clojure","code-style","ns-forms"],"latest_commit_sha":null,"homepage":"https://immoh.github.io/nsorg","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/immoh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-26T14:31:00.000Z","updated_at":"2023-09-08T17:38:27.000Z","dependencies_parsed_at":"2022-08-27T04:22:29.418Z","dependency_job_id":null,"html_url":"https://github.com/immoh/nsorg","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/immoh%2Fnsorg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/immoh%2Fnsorg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/immoh%2Fnsorg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/immoh%2Fnsorg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/immoh","download_url":"https://codeload.github.com/immoh/nsorg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248271842,"owners_count":21075800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clojure","code-style","ns-forms"],"created_at":"2024-11-14T08:09:35.125Z","updated_at":"2025-04-10T18:32:19.733Z","avatar_url":"https://github.com/immoh.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nsorg [![Build Status](https://travis-ci.org/immoh/nsorg.svg?branch=master)](https://travis-ci.org/immoh/nsorg) [![cljdoc badge](https://cljdoc.xyz/badge/nsorg/nsorg)](https://cljdoc.xyz/d/nsorg/nsorg/CURRENT)\n\nClojure library for organizing `ns` form in a way that whitespace and comments are preserved.\n\nRules to apply are fully customizable; the default implementation\n\n* sorts `:require`, `:require-macros`, `:use` and `:use-macros` libspecs alphabetically and removes duplicates\n* sorts `:import` class names alphabetically and removes duplicates\n* sorts `:exclude`, `:only`, `:refer`, `:refer-macros` and `:rename` options alphabetically and removes duplicates\n\nAlso available as Leiningen plugin [lein-nsorg](https://github.com/immoh/lein-nsorg)\nand command line tool [nsorg-cli](https://github.com/immoh/nsorg-cli).\n\n## Installation\n\nDependency information:\n\n```clj\n[nsorg \"0.2.0\"]\n```\n\n## Usage\n\n```clj\n(require '[nsorg.core :as nsorg])\n\n(println (nsorg/rewrite-ns-form \"\n(ns foo\n  ;; use\n  (:use [a.c :only [y z x z]]\n        a\n        [a.b]\n))\n\"))\n\n(ns foo\n  ;; use\n  (:use a\n        [a.b]\n        [a.c :only [x y z]]\n))\n```\n\nCheck [API documentation](https://immoh.github.io/nsorg/) for more details.\n\n\n## Limitations\n\n* Throws exception on some valid ns forms\n* Doesn't sort `:refer`, `:load` or `:gen-class` clauses\n\n\n## License\n\nCopyright © 2018 Immo Heikkinen\n\nDistributed under the Eclipse Public License either version 1.0 or (at your option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimmoh%2Fnsorg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimmoh%2Fnsorg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimmoh%2Fnsorg/lists"}