{"id":22588854,"url":"https://github.com/wolframresearch/codeformatter","last_synced_at":"2026-01-07T10:31:07.648Z","repository":{"id":38796759,"uuid":"301468604","full_name":"WolframResearch/codeformatter","owner":"WolframResearch","description":"Format Wolfram Language source code","archived":false,"fork":false,"pushed_at":"2022-11-14T11:05:47.000Z","size":1592,"stargazers_count":46,"open_issues_count":2,"forks_count":4,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-02-02T18:25:16.983Z","etag":null,"topics":["codeformatter","codetools","formatter","formatting","formatting-wolfram-language","mathematica","wolfram-language","wolfram-mathematica"],"latest_commit_sha":null,"homepage":"","language":"Mathematica","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/WolframResearch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-05T16:16:37.000Z","updated_at":"2025-01-10T17:15:14.000Z","dependencies_parsed_at":"2023-01-21T22:17:40.207Z","dependency_job_id":null,"html_url":"https://github.com/WolframResearch/codeformatter","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolframResearch%2Fcodeformatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolframResearch%2Fcodeformatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolframResearch%2Fcodeformatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolframResearch%2Fcodeformatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WolframResearch","download_url":"https://codeload.github.com/WolframResearch/codeformatter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246073278,"owners_count":20719461,"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":["codeformatter","codetools","formatter","formatting","formatting-wolfram-language","mathematica","wolfram-language","wolfram-mathematica"],"created_at":"2024-12-08T08:11:24.975Z","updated_at":"2026-01-07T10:31:02.608Z","avatar_url":"https://github.com/WolframResearch.png","language":"Mathematica","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeFormatter\n\nCodeFormatter is a package that provides functionality for formatting Wolfram Language code.\n\n```\nNeeds[\"CodeFormatter`\"]\n\nCodeFormat[\"If[a,f/@b,g/@c]\"]\n```\n```\nOut[2]= If[a,\n            f /@ b\n            ,\n            g /@ c\n        ]\n\n```\n\n[Formatting the Wolfram Language from WTC 2020: Watch Video (youtube)](https://www.youtube.com/watch?v=eGvvKlfaPsQ)\n\n\n## Setup\n\nCodeFormatter depends on [CodeParser paclet](https://github.com/WolframResearch/codeparser).\n\nCodeFormatter and its dependencies are included in Mathematica 12.2 and above.\n\nFor older versions, install CodeFormatter paclet and dependencies from the public paclet server:\n```\nPacletInstall[\"CodeParser\"]\nPacletInstall[\"CodeFormatter\"]\n```\n\n[Build and install the CodeFormatter paclet locally](HowToBuild.md)\n\n\n## Using CodeFormatter\n\nAfter CodeFormatter is installed, it can be used.\n\n```\nNeeds[\"CodeFormatter`\"]\n\nCodeFormat[\"If[a,f/@b,g/@c]\"]\n```\n```\nOut[2]= If[a,\n            f /@ b\n            ,\n            g /@ c\n        ]\n\n```\n\nThe input to `CodeFormat` may be a string, a `File`, or a list of bytes.\n\n\n## Troubleshooting\n\nMake sure that the paclets can be found on your system:\n```\nNeeds[\"CodeFormatter`\"]\n```\n\nand try a basic example:\n```\nCodeFormat[\"If[a, b, c]\"]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolframresearch%2Fcodeformatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwolframresearch%2Fcodeformatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolframresearch%2Fcodeformatter/lists"}