{"name":"redput","version":"1.10.0","keywords":["redput","scripts","tool","cli","command","task","parallel","serial","run","tool","commandline","command","putout","putout-editor","gist"],"author":{"url":"http://coderaiser.github.io/","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"redput@1.10.0","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":"5ad249e49c73ead248f892ea0f7e9a0accefe559","tarball":"http://registry-npm.ywwl.com/redput/download/redput-1.10.0.tgz","fileCount":24,"integrity":"sha512-KwCJKoyOyawGbI+1oe270jLtCnRhOOltrt+nrSnUeaXbr6s4z26JW3p7bQSkXD8A8QAo4jGdKfqXCSM/k7GGsA==","signatures":[{"sig":"MEUCIQCRseOUx3y1TJbTe2vabL3M+uzqxUOMnnCbBkdXZJZFkwIgT19Htlgoq21eV/e2Z0C8HFUHjYSS/qG2w3faLuOpWXE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22647,"size":8083,"noattachment":false,"key":"/redput/-/redput-1.10.0.tgz"},"main":"lib/redput.js","type":"module","engines":{"node":">=16"},"exports":{"./plugin/get-report":"./lib/get-report/plugin-get-report/index.js"},"gitHead":"a29df62f0127a6f28312bffa76cfb59fc7a787af","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:mock":"madrun test:mock","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","coverage:es":"madrun coverage:es"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"repository":{"url":"git://github.com/putoutjs/redput.git","type":"git"},"_npmVersion":"9.6.6","description":"CLI tool to convert source from 🐊Putout Editor to files","directories":{},"_nodeVersion":"20.6.0","dependencies":{"rendy":"^3.1.1","putout":"^31.1.0","octokit":"^3.1.0","node-fetch":"^3.3.2","try-to-catch":"^3.0.1","@putout/plugin-putout":"^14.8.0","@putout/plugin-declare":"^2.0.1","@putout/plugin-convert-esm-to-commonjs":"^6.0.0","@putout/plugin-remove-unused-variables":"^6.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^8.0.0","nyc":"^15.0.0","eslint":"^8.0.0","madrun":"^9.3.0","montag":"^1.2.1","escover":"^3.4.0","nodemon":"^3.0.1","supertape":"^8.1.0","@putout/test":"^7.0.1","eslint-plugin-n":"^16.0.1","eslint-plugin-putout":"^19.0.4"},"_npmOperationalInternal":{"tmp":"tmp/redput_1.10.0_1693926389589_0.08650502186337183","host":"s3://npm-registry-packages"},"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":1693926389788,"_cnpm_publish_time":1693926389788,"dist-tags":{"latest":"4.9.4"}}