{"_id":"@arthur-fontaine/rtkify","name":"@arthur-fontaine/rtkify","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@arthur-fontaine/rtkify","version":"1.0.0","type":"module","description":"AST-based Bash rewriter for rtk, with binary path normalization and support for chained commands.","bin":{"rtkify":"dist/index.mjs"},"main":"./dist/index.mjs","types":"./dist/index.d.mts","keywords":["rtk"],"author":{"name":"Arthur Fontaine","url":"https://github.com/arthur-fontaine"},"homepage":"https://github.com/arthur-fontaine/rtkify","license":"ISC","dependencies":{"@ast-grep/lang-bash":"^0.0.8","@ast-grep/napi":"^0.42.0","magic-string":"^0.30.21"},"devDependencies":{"@tsconfig/node-ts":"^23.6.4","@tsconfig/node24":"^24.0.4","@tsconfig/strictest":"^2.0.8","@types/node":"^25.5.0","tsdown":"^0.21.7","typescript":"^6.0.2"},"scripts":{"build":"tsdown --dts"},"_id":"@arthur-fontaine/rtkify@1.0.0","_integrity":"sha512-Ego8dMsaU25BCWBrjGqTsWF7AH9pqMoOAJrRyo9183FIR09qLwW6bUjkIovCSNgKmAVtIdcJItnihiTa/jpRgw==","_resolved":"/private/var/folders/6p/n6bwbp2j1kx1ctcvzc4tnrgc0000gn/T/cf1d049536eb3a0e648a3efd5626a20b/arthur-fontaine-rtkify-1.0.0.tgz","_from":"file:arthur-fontaine-rtkify-1.0.0.tgz","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-Ego8dMsaU25BCWBrjGqTsWF7AH9pqMoOAJrRyo9183FIR09qLwW6bUjkIovCSNgKmAVtIdcJItnihiTa/jpRgw==","shasum":"52b5e19ddc88ae363aefcec1abe753822ab5f803","tarball":"https://registry.npmjs.org/@arthur-fontaine/rtkify/-/rtkify-1.0.0.tgz","fileCount":4,"unpackedSize":5250,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFbByUbx0LzQ2VKZxUlVcHhnJ00lQdU4CEHxPlr0XVDGAiEAwAre27XgQeLwMH0CCQM7NaWOPb/AN339yKo0pm1fNLM="}]},"_npmUser":{"name":"arthur-fontaine","email":"0arthur.fontaine@gmail.com"},"directories":{},"maintainers":[{"name":"arthur-fontaine","email":"0arthur.fontaine@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rtkify_1.0.0_1774956999710_0.813637455719789"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-31T11:36:39.584Z","1.0.0":"2026-03-31T11:36:39.909Z","modified":"2026-03-31T11:36:40.164Z"},"maintainers":[{"name":"arthur-fontaine","email":"0arthur.fontaine@gmail.com"}],"description":"AST-based Bash rewriter for rtk, with binary path normalization and support for chained commands.","homepage":"https://github.com/arthur-fontaine/rtkify","keywords":["rtk"],"author":{"name":"Arthur Fontaine","url":"https://github.com/arthur-fontaine"},"license":"ISC","readme":"# Rtkify\n\n**Without Rtkify**:\n\n```bash\ncd .. && ENV=1 ~/.cargo/bin/cargo test some_test -- --nocapture 2>&1; echo \"exit: $?\"\n```\n\n> `rtk` [detects the `cd`](https://github.com/rtk-ai/rtk/blob/b812a0e92497fc5b395f2db584298454e2bcd7a3/src/discover/rules.rs#L669) and so skips the whole command.\n\n**With Rtkify**:\n\n```bash\ncd .. && ENV=1 rtk cargo test some_test -- --nocapture 2>&1; echo \"exit: $?\"\n```\n\n> `rtkify` creates an AST of the command and detects that `cd` and `cargo` are separate commands, so it only skips the `cd` and rewrites the `cargo` command as expected.\n\n## Usage\n\n```bash\nnpx -p @arthur-fontaine/rtkify rtkify <command>\n```\n\nIf you want to install it globally, you can use the following command:\n\n```bash\nnpm install -g @arthur-fontaine/rtkify\n```\n\nThen you can use it as follows:\n\n```bash\nrtkify <command>\n```\n","readmeFilename":"README.md","_rev":"1-e5fa70581b8dafc014b5921440b1473d"}