{"id":26476834,"url":"https://github.com/voxylu/rapidescript","last_synced_at":"2026-05-17T17:44:05.288Z","repository":{"id":97623248,"uuid":"170879911","full_name":"Voxylu/rapidescript","owner":"Voxylu","description":"A fast, 0 depencies, cli to quicly creates scripts. A replacement of npm scripts.","archived":false,"fork":false,"pushed_at":"2019-02-16T10:21:40.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-06T23:16:13.380Z","etag":null,"topics":["cli","srcipt"],"latest_commit_sha":null,"homepage":"https://npm.im/rapidescript","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/Voxylu.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2019-02-15T14:45:25.000Z","updated_at":"2023-02-15T21:47:40.000Z","dependencies_parsed_at":"2023-05-29T03:30:17.457Z","dependency_job_id":null,"html_url":"https://github.com/Voxylu/rapidescript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Voxylu/rapidescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voxylu%2Frapidescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voxylu%2Frapidescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voxylu%2Frapidescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voxylu%2Frapidescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Voxylu","download_url":"https://codeload.github.com/Voxylu/rapidescript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voxylu%2Frapidescript/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266405362,"owners_count":23923535,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cli","srcipt"],"created_at":"2025-03-20T00:07:59.289Z","updated_at":"2026-05-17T17:44:05.217Z","avatar_url":"https://github.com/Voxylu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RapideScript\n\n\u003e A fast, 0 depencies, cli to quicly creates scripts. A replacement of npm scripts.\n\n1. Install rapidescript: `npm i -g rapidescript`\n2. Create a `rs.js` file\n3. Write `script(\"start\").run(\"node src/index.js\")`\n4. Save and type `rs start`\n5. And **PAF** you have a start script !\n\n## Example\n\n```javascript\nscript('start').run('nodemon -x ts-node src/index.ts')\n\nscript('build')\n  .run('tsc')\n  .execute(() =\u003e {\n    copyFile('src/schema.graphql', 'dist/schema.graphql')\n    removeDir('.cache/')\n    writeFile('dist/changelog.txt', run('git log'))\n  })\n  .run('echo \"Buildind complete\" | lolcat')\n```\n\n## Api\n\nStart a script by calling a function named `script()` with the name of the script as the first arguement.\nThen you can specify the rest of the script by chaining the `run()` and `execute()` methods.\n\nTo start a script just use the `rs` command by doing `rs \u003cname of the script\u003e`\n\n```typescript\n/**\n * How to use run()\n * run() take one or more commands and execute them\n */\nrun('ls').run('cat package.json')\nrun('ls', 'cat package.json')\n// In each case `ls` will be executed then `cat package.json`\n```\n\n```typescript\n/**\n * How to use execute()\n * execute() take a javascript and execute it\n */\nexecute((args) =\u003e console.log(`The arguments are: ${args.join(',')}`))\n// args will the args of the provided when the scripts is called\n```\n\nThe are global shortcut to help you:\n\n```typescript\n/** Alias to fs.writeFileSync */\ndeclare function writeFile(filePath: string, content: string): void\n\n/** Alias to fs.readFileSync */\ndeclare function readFile(filePath: string): string\n\n/** Alias to fs.copyFileSync */\ndeclare function copyFile(filePath: string, destinitionPath: string): void\n\n/** Alias to fs.unlinkSync */\ndeclare function removeFile(filePath: string): void\n\n/** Recursively remove a directory */\ndeclare function removeDir(dirPath: string): void\n\n/** Alias to fs.mkdirSync */\ndeclare function createDir(dirPath: string): void\n\n/** Run a command */\ndeclare function run(command: string): string\n\n/** Alias to process.env */\ndeclare const env: any\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxylu%2Frapidescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoxylu%2Frapidescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxylu%2Frapidescript/lists"}