{"id":18961406,"url":"https://github.com/nushell/nufmt","last_synced_at":"2026-04-01T13:30:19.066Z","repository":{"id":106104962,"uuid":"407906489","full_name":"nushell/nufmt","owner":"nushell","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-21T13:53:57.000Z","size":113,"stargazers_count":86,"open_issues_count":14,"forks_count":10,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-01-01T04:50:14.585Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nushell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nushell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-18T16:07:21.000Z","updated_at":"2024-12-30T20:00:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"e5f4d507-f558-4198-996c-e1bc37cbdf6a","html_url":"https://github.com/nushell/nufmt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nushell%2Fnufmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nushell%2Fnufmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nushell%2Fnufmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nushell%2Fnufmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nushell","download_url":"https://codeload.github.com/nushell/nufmt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239958284,"owners_count":19724925,"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":[],"created_at":"2024-11-08T14:12:39.721Z","updated_at":"2026-04-01T13:30:18.998Z","avatar_url":"https://github.com/nushell.png","language":"Nushell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# `nufmt`: the nushell formatter\n\n[![MIT licensed][mit-badge]][mit-url]\n[![Discord chat][discord-badge]][discord-url]\n[![CI on main][ci-badge]][ci-url]\n[![nushell version][nushell-badge]][nushell-url]\n\n[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg?color=brightgreen\n[mit-url]: https://github.com/nushell/nufmt/blob/main/LICENSE\n[discord-badge]: https://img.shields.io/discord/678763474494423051?logo=discord\u0026label=discord\u0026color=brightgreen\n[discord-url]: https://discord.gg/NtAbbGn\n[ci-badge]: https://github.com/nushell/nufmt/actions/workflows/main.yml/badge.svg\n[ci-url]: https://github.com/nushell/nufmt/actions/workflows/main.yml\n[nushell-badge]: https://img.shields.io/badge/nushell-v0.88.1-green\n[nushell-url]: https://crates.io/crates/nu\n\n\u003c/div\u003e\n\n## Table of contents\n\n- [Status](#status)\n- [Usage](#usage)\n  - [Files](#files)\n  - [Options](#options)\n- [Contributing](#contributing)\n\n## Status\n\nThis project is still very much in beta. Expect bugs, unconsistent behaviour. Do not use in productive nushell scripts!\n\nSome of the outputs deletes comments, break the functionality of the script or doesn't format at all.\n\nTo use the formatter, test it first and use it with caution!.\n\n## Installation\n\n- `cargo install --git https://github.com/nushell/nufmt`\n- Using our bundled Nix flake.\n\n## Usage\n\nIf you still want to use it, or test it to contribute, this is the `--help`.\n\n```text\nnufmt [OPTIONS] [FILES] ...\n```\n\n### Files\n\n`Files` are a list of files. It cannot be used combined with `--stdin`.\nYou can format many files with one command!. For example:\n\n```text\nnufmt my-file1.nu my-file2.nu my-file3.nu\n```\n\n### Options\n\n- `-s` or `--stdin` formats from `stdin`, returns to `stdout` as a String. It cannot be used combined with `files`.\n- `-c` or `--config` pass the config file path.\n  Sample:\n\n  ```text\n  nufmt \u003cfiles\u003e --config my-config.json\n  ```\n\n  or\n\n  ```text\n  nufmt --stdin \u003cstring\u003e --config my-stdin-config.json\n  ```\n\n- `-h` or `--help` show help and exit\n- `-v` or `--version` prints the version and exit\n\n## Contributing\n\nWe have a [contribution guide](docs/CONTRIBUTING.md). If you still have doubts, you can mention @`AucaCoyan` who is active on this repo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnushell%2Fnufmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnushell%2Fnufmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnushell%2Fnufmt/lists"}