{"name":"redput","version":"4.9.3","keywords":["redput","scripts","tool","cli","command","task","parallel","serial","run","commandline","putout","putout-editor","gist"],"author":{"url":"http://coderaiser.github.io/","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"redput@4.9.3","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/putoutjs/redput","bugs":{"url":"https://github.com/putoutjs/redput/issues"},"bin":{"redput":"bin/redput.js"},"dist":{"shasum":"3086229906ee7a26ae8faa33a5eed0953edf077b","tarball":"http://registry-npm.ywwl.com/redput/download/redput-4.9.3.tgz","fileCount":41,"integrity":"sha512-LGQyL+RXXWBXK9G2AfonN47CHnONypYECtM0/63fxRGMvmvKLHxwvzzjt/5TtyT8x5rtd/1jlS5rfOLliUmclA==","signatures":[{"sig":"MEUCIQDfbiJz3HfW46D6UHtPWfqvPKYZhRv38ToQVaEesaFdVwIgSbXnEjuvlsPOLDEew9bk1dlXMYnhwzUjZvTscwacsIY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIC4U5XES/pTDg1xN3GfQedLS54y+yP63FE+Kf7ZI4EgOAiEA+K3o2giL+aXRUvq5vaAZOGHuRqUxJMjjTN8sSaK3hx0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":50677,"size":15781,"noattachment":false,"key":"/redput/-/redput-4.9.3.tgz"},"main":"lib/redput.js","type":"module","engines":{"node":">=22"},"exports":{"./compile-rule":{"types":"./lib/compile-rule/compile-rule.d.ts","default":"./lib/compile-rule/compile-rule.js"},"./plugin/get-report":"./lib/get-report/plugin-get-report/index.js"},"gitHead":"4e250ef262c9714652f61c37eddc49f4232a8217","scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","wisdom":"madrun wisdom","watcher":"madrun watcher","coverage":"madrun coverage","fix:lint":"madrun fix:lint","test:dts":"madrun test:dts","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:lint":"madrun watch:lint","watch:tape":"madrun watch:tape","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"repository":{"url":"git+https://github.com/putoutjs/redput.git","type":"git"},"_npmVersion":"12.0.2","description":"CLI tool to convert source from 🐊Putout Editor to files","directories":{},"_nodeVersion":"26.8.2","dependencies":{"rendy":"^5.0.0","putout":"^42.0.5","octokit":"^5.0.3","try-catch":"^4.0.4","node-fetch":"^3.3.2","try-to-catch":"^4.0.0","halting-problem":"^1.1.0","@putout/plugin-esm":"^10.0.0","@putout/plugin-maybe":"^5.1.0","@putout/plugin-types":"^10.6.0","@putout/plugin-nodejs":"^21.0.0","@putout/plugin-putout":"^29.0.0","@putout/plugin-declare":"^8.0.0","@putout/plugin-variables":"^2.2.0","@putout/plugin-conditions":"^9.2.1","@putout/processor-markdown":"^14.0.5","@putout/plugin-destructuring":"^2.1.1","@putout/plugin-optional-chaining":"^3.0.1","@putout/plugin-declare-before-reference":"^10.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.0","montag":"^2.0.1","nodemon":"^3.0.1","redlint":"^6.0.0","superc8":"^12.2.4","check-dts":"^1.0.0","supertape":"^13.0.0","typescript":"^6.0.0","@putout/test":"^15.0.0","eslint-plugin-putout":"^31.0.0"},"_npmOperationalInternal":{"tmp":"tmp/redput_4.9.3_1790536484495_0.27477674624406934","host":"s3://npm-registry-packages-npm-production"},"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&service=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 = () => `Write all files`;\n\nexport const fix = (file) => {\n    const content = readFileContent(file);\n    writeFileContent(file, content);\n};\n\nexport const scan = (root, {push}) => {\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","publish_time":1790536484579,"_cnpm_publish_time":1790536484579,"dist-tags":{"latest":"4.9.4"}}