{"id":17774303,"url":"https://github.com/dominhhai/mws-sdk","last_synced_at":"2026-05-16T11:33:45.796Z","repository":{"id":57273156,"uuid":"121501282","full_name":"dominhhai/mws-sdk","owner":"dominhhai","description":"Amazon MWS client sdk for Node.js with clean output","archived":false,"fork":false,"pushed_at":"2018-05-04T07:38:00.000Z","size":257,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-19T22:26:49.120Z","etag":null,"topics":["amazon","aws","mws","mws-api","mws-sdk"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/imws","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/dominhhai.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-14T11:05:24.000Z","updated_at":"2023-03-04T06:21:54.000Z","dependencies_parsed_at":"2022-08-25T04:13:17.143Z","dependency_job_id":null,"html_url":"https://github.com/dominhhai/mws-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dominhhai/mws-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominhhai%2Fmws-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominhhai%2Fmws-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominhhai%2Fmws-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominhhai%2Fmws-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dominhhai","download_url":"https://codeload.github.com/dominhhai/mws-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominhhai%2Fmws-sdk/sbom","scorecard":{"id":350583,"data":{"date":"2025-08-11","repo":{"name":"github.com/dominhhai/mws-sdk","commit":"d20d30f50610589590217131d2a364fadb60dba4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"24 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-rq8g-5pc5-wrhr","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-qh2h-chj9-jffq","Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq","Warn: Project is vulnerable to: GHSA-jp4x-w63m-7wgm","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-hxm2-r34f-qmc5","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-w9mr-4mfr-499f","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-2m39-62fm-q8r3","Warn: Project is vulnerable to: GHSA-mf6x-7mm4-x2g7","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq","Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T08:12:25.517Z","repository_id":57273156,"created_at":"2025-08-18T08:12:25.517Z","updated_at":"2025-08-18T08:12:25.517Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33100882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["amazon","aws","mws","mws-api","mws-sdk"],"created_at":"2024-10-26T21:50:24.520Z","updated_at":"2026-05-16T11:33:45.725Z","avatar_url":"https://github.com/dominhhai.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"imws\n======\n\nOriginally forked from [vedmalex/mws-sdk](https://github.com/vedmalex/mws-sdk).\n\nWhy forked?\n-------------\nThe response object made by `xml2js` is\n - So looooooong\n - Un-clean `~~~~`\n - Hard to track ...00.aa444\n - Tired to access =\u003e.=\u003e.=\u003e.=\u003e\n\nWhat is done:\n-------------\n\n - I fix it with better response format!!!\n\n\nInstallation\n--------\n```\n$ npm i -S imws\n```\n\nExamples\n--------\n\nInitialize\n\n```javascript\nvar MWS = require('imws'),\n    client = new MWS.Client(\n      'accessKeyId',\n      'secretAccessKey',\n      'merchantId',\n      {\n        // target mws host. Default: 'mws.amazonservices.com'\n        host: MWS.Endpoint.jp,\n        // Optional Auth Token when using delegated Developer access.\n        authToken: 'amzn.mws...',\n        // request options (https://github.com/request/request#requestoptions-callback)\n        requestOpts: {\n          proxy: 'http://PROXY_HOST:PROXY_PORT',\n          encoding: null\n        }\n      }\n    ),\n    MarketplaceId = \"ATVPDKIKX0DER\";\n```\n\nnow you can use it\n\n```javascript\nfunction getListOrders(client, args) {\n  var req = MWS.Orders.requests.ListOrders();\n  req.set('CreatedAfter', args.CreatedAfter);\n  req.set('CreatedBefore', args.CreatedBefore);\n  req.set('LastUpdatedAfter', args.LastUpdatedAfter);\n  req.set('MarketplaceId', args.MarketplaceId);\n  req.set('LastUpdatedBefore', args.LastUpdatedBefore);\n  req.set('OrderStatus', args.OrderStatus);\n  req.set('FulfillmentChannel', args.FulfillmentChannel);\n  req.set('PaymentMethod', args.PaymentMethod);\n  req.set('BuyerEmail', args.BuyerEmail);\n  req.set('SellerOrderId', args.SellerOrderId);\n  req.set('MaxResultsPerPage', args.MaxResultsPerPage);\n  return client.invoke(req);\n}\n// or you can do like this\nfunction getListOrders(client, args) {\n  var req = MWS.Orders.requests.ListOrders();\n  req.set(args);\n  return client.invoke(req);\n}\n\n```\n\nUse it.\n\n```javascript\nvar date = new Date();\ngetListOrders(client, {\n  MarketplaceId: MarketplaceId,\n  MaxResultsPerPage: 10,\n  CreatedAfter: new Date(2015, 1, 1),\n  CreatedBefore: new Date(2015, 1, 31)\n})\n// convert to clean JS Object\n.then(MWS.Orders.responses.ListOrders)\n.catch(function(error) {\n  console.error(error);\n})\n.then(function(RESULT){\n  console.log(\"--------\");\n  console.log(JSON.stringify(RESULT));\n  console.log(\"--------\");\n});\n```\n\nTests\n-----\n\n1. Fill in the values for `env.sh` and run tests:\n\n  ```\n  cd cloneOfThisProject\n  . ./env.sh\n  npm test\n  ```\n2. To see more logs while running tests, choose from:\n\n  ```\n  NODE_DEBUG=request npm test\n  NODE_ENV=development npm test\n  NODE_ENV=development NODE_DEBUG=request npm test\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdominhhai%2Fmws-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdominhhai%2Fmws-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdominhhai%2Fmws-sdk/lists"}