{"id":30617330,"url":"https://github.com/deniz-blue/string-commands","last_synced_at":"2025-08-30T10:03:47.027Z","repository":{"id":61271623,"uuid":"548536182","full_name":"deniz-blue/string-commands","owner":"deniz-blue","description":"A powerful command handler and parser for all your needs. Includes checks, custom arguments, middlewares and more.","archived":false,"fork":false,"pushed_at":"2024-09-18T11:58:00.000Z","size":153,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-14T04:48:13.652Z","etag":null,"topics":["command","command-handler","command-handlers","command-line-parser","command-pattern","commands","handler","string-manipulation"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/deniz-blue.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}},"created_at":"2022-10-09T19:16:23.000Z","updated_at":"2024-07-25T16:52:07.000Z","dependencies_parsed_at":"2024-03-23T11:22:48.378Z","dependency_job_id":"ac51ceb3-075c-48f2-8b80-fda8f7c947eb","html_url":"https://github.com/deniz-blue/string-commands","commit_stats":{"total_commits":22,"total_committers":4,"mean_commits":5.5,"dds":0.5,"last_synced_commit":"ccbca8a1e70e2be0db522fa0be84c963a91ccd57"},"previous_names":["deniz-blue/string-commands","thealan404/string-commands"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deniz-blue/string-commands","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deniz-blue%2Fstring-commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deniz-blue%2Fstring-commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deniz-blue%2Fstring-commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deniz-blue%2Fstring-commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deniz-blue","download_url":"https://codeload.github.com/deniz-blue/string-commands/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deniz-blue%2Fstring-commands/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272833344,"owners_count":25000874,"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-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["command","command-handler","command-handlers","command-line-parser","command-pattern","commands","handler","string-manipulation"],"created_at":"2025-08-30T10:03:46.456Z","updated_at":"2025-08-30T10:03:47.008Z","avatar_url":"https://github.com/deniz-blue.png","language":"JavaScript","readme":"# string-commands\n\nA powerful command handler and parser for all your needs. Includes checks, custom arguments, middlewares and more.\n\n## Features\n\n- Easy to use\n- Recursive folder importing\n- Compatability with older commands\n- Configurable messages (no defaults)\n- Command checks (requirements)\n- Middlewares\n- Argument handling with custom argument support\n\n## Examples\n\nFor the best example please see [consoleExample.js](/examples/consoleExample.js)\n\n## Usage\n\n### Installing\n\nYou can install this package using\n\n```sh\nnpm i string-commands\n```\n\nAnd then import using\n\n```js\nimport { CommandHandler } from \"string-commands\";\n```\n\n### Documentation\n\nSee these for docs:\n\n- [Command Handler](./docs/CommandHandler.md)\n- [Commands](./docs/Commands.md)\n- [Usages](./docs/Usages.md)\n- [Middlewares](./docs/Middlewares.md)\n\n## TODO\n\n- [x] Complete typings\n- [x] Middleware\n- [ ] Subcommands\n- [ ] Database Middlewares\n- [ ] Permissions Middleware\n\n## Changelog\n\n**v1.1.0:**\n\n- :warning: **BREAKING:** In `ExecutorContext` (ctx in `failedChecksMessage(ctx)`/now `on(\"failedChecks\", (ctx)=\u003e{})`), the **`checks`** property is now `CommandCheckResult[]` instead of `string[]`. This allows Command Checks to supply additional information about the failed checks, such as\n  - Codes for custom error messages\n  - Additional context information (for example, you could supply the user's score or something so your failed checks handler doesnt have to fetch it from a database again, or maybe supply the needed threshold etc)\n- :warning: The `invalidUsageMessage` and `failedChecksMessage` functions have been removed. Please use the `invalidUsage` and `failedChecks` events instead.\n- Default prefix is now `\"\"` (empty string)\n\n- Added [Middlewares](./docs/Middlewares.md)\n- Added `index.d.ts` declarations file that's needlessly complex (and also incomplete)\n- Added more documentation\n\n**v1.0.0:**\n\n- Created project\n- Added documentation\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeniz-blue%2Fstring-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeniz-blue%2Fstring-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeniz-blue%2Fstring-commands/lists"}