{"id":31727522,"url":"https://github.com/toryas/aws-utils","last_synced_at":"2026-04-18T19:32:23.970Z","repository":{"id":57378229,"uuid":"245482948","full_name":"toryas/aws-utils","owner":"toryas","description":"tools for AWS","archived":false,"fork":false,"pushed_at":"2020-12-10T19:44:45.000Z","size":76,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T02:05:35.578Z","etag":null,"topics":["athena","aws","s3","s3-bucket","typescript"],"latest_commit_sha":null,"homepage":null,"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/toryas.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.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":"2020-03-06T17:45:30.000Z","updated_at":"2022-03-07T19:29:56.000Z","dependencies_parsed_at":"2022-09-26T16:41:27.170Z","dependency_job_id":null,"html_url":"https://github.com/toryas/aws-utils","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/toryas/aws-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toryas%2Faws-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toryas%2Faws-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toryas%2Faws-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toryas%2Faws-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toryas","download_url":"https://codeload.github.com/toryas/aws-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toryas%2Faws-utils/sbom","scorecard":{"id":895165,"data":{"date":"2025-08-11","repo":{"name":"github.com/toryas/aws-utils","commit":"638734adb60933ae0b29da2c33629059d30a6f02"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":"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"}}]},"last_synced_at":"2025-08-24T13:25:00.201Z","repository_id":57378229,"created_at":"2025-08-24T13:25:00.201Z","updated_at":"2025-08-24T13:25:00.201Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000823,"owners_count":26082950,"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-10-09T02:00:07.460Z","response_time":59,"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":["athena","aws","s3","s3-bucket","typescript"],"created_at":"2025-10-09T06:25:24.588Z","updated_at":"2025-10-09T06:25:29.863Z","avatar_url":"https://github.com/toryas.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toryas / Utils AWS\r\n\r\n- [How to install](#install)\r\n- [Config](#config)\r\n- [Usage](#usage)\r\n- [Utils List](#list)\r\n\r\n## Utils for AWS services\r\n\r\nThis lib contains many wrapers for aws-sdk libs to work with AWS services....\r\n\r\nTo view full documentation visit [GitHub Page](https://github.com/toryas/aws-utils#README.md)\r\n\r\n\u003ca name=\"install\"\u003e\u003c/a\u003e\r\n## Install \r\n\r\nfor install run:\r\n\r\n\u003e npm install --save toryas-utils-aws\r\n\r\n\u003ca name=\"config\"\u003e\u003c/a\u003e\r\n## Config\r\n\r\nExist two ways to use:\r\n\r\n### Config File\r\n\r\nYou can create a config file named `toryas.config.js` in root of project.\r\n\r\nYou should create and export an object called `AWS_CONFIG` and use de [aws sdk config](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/configuring-the-jssdk.html)\r\n\r\nthe config file looks like : \r\n\r\n```javascript\r\nconst AWS_CONFIG = {\r\n    region: 'us-east-1' // you should set the region to use\r\n}\r\n\r\nmodule.exports = { AWS_CONFIG }\r\n```\r\n\r\n### Pass AWS-SDK config in constructor\r\n\r\nYou can pass the aws config in constructor of util like this.\r\n\r\n```javascript\r\nlet config = {\r\n    region:'us-east-1'\r\n}\r\nlet athenaUtils = new AthenaUtils(config)\r\n\r\n```\r\n\r\n\u003ca name=\"usage\"\u003e\u003c/a\u003e\r\n## Usage\r\n\r\nTo use the lib, you only should import the util that you need.\r\n\r\n```javascript\r\nconst { AthenaUtils } = require('toryas-utils-aws')\r\nor\r\nimport { AthenaUtils } from 'toryas-utils-aws'\r\n\r\n\r\n// ...\r\n\r\nlet params = {\r\n    query:'SELECT * FROM myTable limit 2',\r\n    s3output:\"s3://myBucket/somefolder/\"\r\n}\r\n\r\nlet athenaUtils = new AthenaUtils();\r\nathenaUtils.query(params).then(result =\u003e {\r\n    console.log(result);\r\n    /*\r\n        ResultObject {\r\n            QueryExecutionId: 'F6e86f07-764b-41d9-ab51-787ae5fff64e',\r\n            S3Location: 's3://myBucket/somefolder/F6e86f07-764b-41d9-ab51-787ae5fff64e.csv',\r\n            StatementType: 'DML',\r\n            Statistics: {\r\n                EngineExecutionTimeInMillis: 2091,\r\n                DataScannedInBytes: 48,\r\n                TotalExecutionTimeInMillis: 2315,\r\n                QueryQueueTimeInMillis: 216,\r\n                QueryPlanningTimeInMillis: 1337,\r\n                ServiceProcessingTimeInMillis: 8\r\n            },\r\n        Result: { Items: [ [Object], [Object] ], Count: 2 }\r\n    }\r\n    */\r\n})\r\n\r\n```\r\n\r\n\u003ca name=\"list\"\u003e\u003c/a\u003e\r\n# Utils List\r\n\r\n- [S3Utils](./docs/s3-utils.md)\r\n- [AthenaUtils](./docs/athena-utils.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoryas%2Faws-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoryas%2Faws-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoryas%2Faws-utils/lists"}