{"id":14156384,"url":"https://github.com/putoutjs/redput","last_synced_at":"2026-02-19T16:05:22.200Z","repository":{"id":185330967,"uuid":"672072022","full_name":"putoutjs/redput","owner":"putoutjs","description":"CLI tool to download source of a rule and fixtures from 🐊Putout Editor and generate tests from it.","archived":false,"fork":false,"pushed_at":"2026-02-11T18:23:43.000Z","size":168,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-12T03:21:16.056Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/putoutjs.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"coderaiser","patreon":"coderaiser","open_collective":"cloudcmd","ko_fi":"coderaiser"}},"created_at":"2023-07-28T21:09:31.000Z","updated_at":"2026-02-11T18:24:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f5bdd35-d422-4362-a237-af7da3e64073","html_url":"https://github.com/putoutjs/redput","commit_stats":{"total_commits":112,"total_committers":2,"mean_commits":56.0,"dds":0.0625,"last_synced_commit":"76b8ff17e3f7d3bcee5c1e4b698abbb5c3c8c890"},"previous_names":["putoutjs/redput"],"tags_count":58,"template":false,"template_full_name":null,"purl":"pkg:github/putoutjs/redput","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/putoutjs%2Fredput","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/putoutjs%2Fredput/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/putoutjs%2Fredput/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/putoutjs%2Fredput/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/putoutjs","download_url":"https://codeload.github.com/putoutjs/redput/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/putoutjs%2Fredput/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29588776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T16:55:40.614Z","status":"ssl_error","status_checked_at":"2026-02-18T16:55:37.558Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-08-17T08:05:25.492Z","updated_at":"2026-02-19T16:05:22.182Z","avatar_url":"https://github.com/putoutjs.png","language":"JavaScript","funding_links":["https://github.com/sponsors/coderaiser","https://patreon.com/coderaiser","https://opencollective.com/cloudcmd","https://ko-fi.com/coderaiser"],"categories":["others"],"sub_categories":[],"readme":"# RedPut [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n\n[NPMURL]: https://npmjs.org/package/redput \"npm\"\n[NPMIMGURL]: https://img.shields.io/npm/v/redput.svg?style=flat\n[BuildStatusURL]: https://github.com/putoutjs/redput/actions/workflows/nodejs.yml \"Build Status\"\n[BuildStatusIMGURL]: https://github.com/putoutjs/redput/actions/workflows/nodejs.yml/badge.svg\n[LicenseURL]: https://tldrlegal.com/license/mit-license \"MIT License\"\n[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[CoverageURL]: https://coveralls.io/github/putoutjs/redput?branch=master\n[CoverageIMGURL]: https://coveralls.io/repos/putoutjs/redput/badge.svg?branch=master\u0026service=github\n\nCLI tool to download source of a `rule` and `fixtures` from 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/33a75dce299788583a567e02f29828c8/7a97049f1c88ef9e3396d43b6a64246da0093670) and generate tests from it.\n\n## Install\n\n```\nnpm i redput -g\n```\n\n# Usage\n\n```sh\nGITHUB_TOKEN=github-token redput [putout-editor-url]\n```\n\n`redput` determines where it located and does one of next things:\n\n- if it finds `index.js` - creates rule inside nested plugin;\n- creates directory with a plugin name and fills directories `lib`, `test` and `fixture`;\n\nexample of input:\n\n```js\n// [\"off\", \"write-all-files\"]\nexport const report = () =\u003e `Write all files`;\n\nexport const fix = (file) =\u003e {\n    const content = readFileContent(file);\n    writeFileContent(file, content);\n};\n\nexport const scan = (root, {push}) =\u003e {\n    findFile(root, ['*']).map(push);\n};\n```\n\nWhen you get your rule downloaded, use:\n\n```sh\nUPDATE=1 npm fix:lint test\n```\n\nto finish preparations of new rule and tests.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fputoutjs%2Fredput","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fputoutjs%2Fredput","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fputoutjs%2Fredput/lists"}