{"id":37611531,"url":"https://github.com/imadarchid/bkam-wrapper","last_synced_at":"2026-01-16T10:23:20.878Z","repository":{"id":37084824,"uuid":"251369911","full_name":"imadarchid/bkam-wrapper","owner":"imadarchid","description":"A Node.js wrapper for Bank Al-Maghrib's API","archived":false,"fork":false,"pushed_at":"2024-01-10T01:09:52.000Z","size":16,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-01T02:31:10.101Z","etag":null,"topics":["bank-al-maghrib","nodejs","wrapper-api"],"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/imadarchid.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":"2020-03-30T16:52:15.000Z","updated_at":"2023-05-25T22:15:42.000Z","dependencies_parsed_at":"2024-10-24T19:05:07.044Z","dependency_job_id":"d6d833af-4338-4aea-a811-4f1e3daadf93","html_url":"https://github.com/imadarchid/bkam-wrapper","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":0.5,"last_synced_commit":"08f99ff3a306e6b069293c5189f5dda1453f347b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imadarchid/bkam-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imadarchid%2Fbkam-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imadarchid%2Fbkam-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imadarchid%2Fbkam-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imadarchid%2Fbkam-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imadarchid","download_url":"https://codeload.github.com/imadarchid/bkam-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imadarchid%2Fbkam-wrapper/sbom","scorecard":{"id":484707,"data":{"date":"2025-08-11","repo":{"name":"github.com/imadarchid/bkam-wrapper","commit":"08f99ff3a306e6b069293c5189f5dda1453f347b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/3 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":"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":"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":"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":"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":"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 6 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":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp"],"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-19T17:29:51.920Z","repository_id":37084824,"created_at":"2025-08-19T17:29:51.920Z","updated_at":"2025-08-19T17:29:51.920Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: 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":["bank-al-maghrib","nodejs","wrapper-api"],"created_at":"2026-01-16T10:23:20.166Z","updated_at":"2026-01-16T10:23:20.871Z","avatar_url":"https://github.com/imadarchid.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bkam-wrapper\n\n\u003e A Node.js wrapper for Bank Al-Maghrib's API\n\nThis might help you get data from BKAM's API in your node.js apps easily. Make sure to register on the [Developer's portal](https://apihelpdesk.centralbankofmorocco.ma/) to get access to your API keys \u0026 take a look at the documentation.\n\nFor now only two products are offered: Currency Exchange Rates \u0026 Treasury Bonds reference interest rates\n\n## Install\n\n[npm][]:\n\n```sh\nnpm install bkam-wrapper\n```\n\n## Usage\n\n```js\nconst bkamWrapper = require('bkam-wrapper');\n\n// Include your API keys from BKAM developer account\nconst getData = new bkamWrapper({\n    currency_key: YOUR_CURRENCY_KEY,\n    bonds_key: YOUR_BONDS_KEY\n})\n\n```\n\n### Methods\n- **Getting currency exchange rates - Banknotes**\n\n```js\n\ngetData.getCoursBBE(options)\n\n```\noptions: libDevise: _String_, optional | date: _String_, optional\n\n- **Getting currency exchange rates - Transfers**\n\n```js\n\ngetData.getCoursVIR(options)\n\n```\noptions: libDevise: _String_, optional | date: _String_, optional\n\n- **Getting reference interest rate of TBs data**\n\n```js\n\ngetData.getCourbeBDT(options)\n\n```\noptions: dateCourbe: _String_, optional\n\n\n## Contribute \u0026 Future Work\nYou're welcome to contribute or open issues to improve the code! It should be easy to adapt this project if new products are offered by Bank Al Maghrib's API. \n\n_P.S: I am still learning, feel free to contact me if something needs to be improved in the project!_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimadarchid%2Fbkam-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimadarchid%2Fbkam-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimadarchid%2Fbkam-wrapper/lists"}