{"id":26351642,"url":"https://github.com/inqnuam/aws-query-decoder","last_synced_at":"2025-03-16T10:33:37.146Z","repository":{"id":234599215,"uuid":"789193914","full_name":"Inqnuam/aws-query-decoder","owner":"Inqnuam","description":"AWS Query Protocol body decoder","archived":false,"fork":false,"pushed_at":"2024-04-20T00:12:29.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T20:47:16.914Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Inqnuam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-04-19T22:36:03.000Z","updated_at":"2024-04-20T00:12:33.000Z","dependencies_parsed_at":"2024-04-20T17:30:42.702Z","dependency_job_id":null,"html_url":"https://github.com/Inqnuam/aws-query-decoder","commit_stats":null,"previous_names":["inqnuam/aws-query-decoder"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inqnuam%2Faws-query-decoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inqnuam%2Faws-query-decoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inqnuam%2Faws-query-decoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inqnuam%2Faws-query-decoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Inqnuam","download_url":"https://codeload.github.com/Inqnuam/aws-query-decoder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243858893,"owners_count":20359258,"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","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":[],"created_at":"2025-03-16T10:33:37.061Z","updated_at":"2025-03-16T10:33:37.140Z","avatar_url":"https://github.com/Inqnuam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Query Protocol Decoder\n\n\u003e Converts a string encoded with AWS Query Protocol into JS Object.\n\n## Install\n\n```bash\nnpm i aws-query-decoder\n```\n\n## Usage example:\n\n```js\nconst { decode } = require(\"aws-query-decoder\");\n// import { decode } from \"aws-query-decoder\";\n\nconst rawBody = `Action=SendMessageBatch\u0026SendMessageBatchRequestEntry.1.Id=test_msg_001\u0026SendMessageBatchRequestEntry.1.MessageBody=test%20message%20body%201\u0026SendMessageBatchRequestEntry.2.Id=test_msg_002\u0026SendMessageBatchRequestEntry.2.MessageBody=test%20message%20body%202\u0026SendMessageBatchRequestEntry.2.DelaySeconds=60\u0026SendMessageBatchRequestEntry.2.MessageAttribute.1.Name=test_attribute_name_1\u0026SendMessageBatchRequestEntry.2.MessageAttribute.1.Value.StringValue=test_attribute_value_1\u0026SendMessageBatchRequestEntry.2.MessageAttribute.1.Value.DataType=String`;\n\nconst SendMessageBatch = decode(rawBody);\n```\n\n### output\n\n```json\n{\n  \"Action\": \"SendMessageBatch\",\n  \"SendMessageBatchRequestEntry\": [\n    { \"Id\": \"test_msg_001\", \"MessageBody\": \"test message body 1\" },\n    {\n      \"Id\": \"test_msg_002\",\n      \"MessageBody\": \"test message body 2\",\n      \"DelaySeconds\": \"60\",\n      \"MessageAttribute\": [\n        {\n          \"Name\": \"test_attribute_name_1\",\n          \"Value\": {\n            \"DataType\": \"String\",\n            \"StringValue\": \"test_attribute_value_1\"\n          }\n        }\n      ]\n    }\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finqnuam%2Faws-query-decoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finqnuam%2Faws-query-decoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finqnuam%2Faws-query-decoder/lists"}