{"id":21569499,"url":"https://github.com/naturalcycles/ktlint","last_synced_at":"2025-04-10T14:07:17.587Z","repository":{"id":57129449,"uuid":"437333848","full_name":"NaturalCycles/ktlint","owner":"NaturalCycles","description":"ktlint, conveniently published to npm registry","archived":false,"fork":false,"pushed_at":"2024-12-29T16:57:15.000Z","size":418814,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T02:34:00.647Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NaturalCycles.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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-12-11T16:34:01.000Z","updated_at":"2025-01-02T09:02:55.000Z","dependencies_parsed_at":"2024-12-29T17:42:49.152Z","dependency_job_id":null,"html_url":"https://github.com/NaturalCycles/ktlint","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"947e337263ceeb89fa718ccc591b8b654e5ee38d"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaturalCycles%2Fktlint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaturalCycles%2Fktlint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaturalCycles%2Fktlint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaturalCycles%2Fktlint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NaturalCycles","download_url":"https://codeload.github.com/NaturalCycles/ktlint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248231977,"owners_count":21069428,"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-24T11:09:38.458Z","updated_at":"2025-04-10T14:07:17.579Z","avatar_url":"https://github.com/NaturalCycles.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## @naturalcycles/ktlint\n\n\u003e [ktlint](https://github.com/pinterest/ktlint) conveniently published to npm registry\n\n[![npm](https://img.shields.io/npm/v/@naturalcycles/ktlint/latest.svg)](https://www.npmjs.com/package/@naturalcycles/ktlint)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![ktlint](https://img.shields.io/badge/code%20style-%E2%9D%A4-FF4081.svg)](https://ktlint.github.io/)\n\nCurrent ktlint version: `1.5.0`\n\n# Quick start\n\nJust run it without installation:\n\n```shell\nnpx @naturalcycles/ktlint --version\n```\n\nOr, install it like this:\n\n```shell\nyarn add -D @naturalcycles/ktlint\n```\n\nRun ktlint (locally installed into `./node_modules`):\n\n```shell\nyarn ktlint --version\n```\n\nNo Step 3!\n\n## API\n\nYou can run `ktlint` programmatically via Node.js by calling `ktlintAll()` function exposed by this\nmodule. It returns a Promise (rejects on non-zero code from `ktlint`, resolves on success).\n\n## Development\n\nTo update the ktlint version that is shipped here:\n\n- Check the ktlint [release notes](https://github.com/pinterest/ktlint/releases)\n- Change it in `scripts/install.ts` to the new version (and in this readme.md too)\n- Delete `resources/ktlint`\n- Run `yarn tsn install`, which will download the new version\n- Test it with `yarn ktlint --version`, it should print the new version\n- Test it with `yarn ktlint -F`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaturalcycles%2Fktlint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaturalcycles%2Fktlint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaturalcycles%2Fktlint/lists"}