{"id":21937780,"url":"https://github.com/atayahmet/sec-to-format","last_synced_at":"2026-04-29T23:31:42.266Z","repository":{"id":143907920,"uuid":"275337071","full_name":"atayahmet/sec-to-format","owner":"atayahmet","description":"Convert unix timestamp seconds to readable time format.","archived":false,"fork":false,"pushed_at":"2020-11-17T07:38:14.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-07T04:22:58.984Z","etag":null,"topics":["human-readable-formats","second-formatter","seconds-to-hms","time-converter","time-format"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/atayahmet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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,"publiccode":null,"codemeta":null}},"created_at":"2020-06-27T09:12:01.000Z","updated_at":"2023-03-04T03:34:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"18cb04ff-dd04-43c6-ab10-5e4792c8565c","html_url":"https://github.com/atayahmet/sec-to-format","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/atayahmet/sec-to-format","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atayahmet%2Fsec-to-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atayahmet%2Fsec-to-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atayahmet%2Fsec-to-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atayahmet%2Fsec-to-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atayahmet","download_url":"https://codeload.github.com/atayahmet/sec-to-format/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atayahmet%2Fsec-to-format/sbom","scorecard":{"id":214259,"data":{"date":"2025-08-11","repo":{"name":"github.com/atayahmet/sec-to-format","commit":"e4489ee172f8b5784ad2749d1248b58fe98386a6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/2 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":"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":"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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"}}]},"last_synced_at":"2025-08-17T01:22:13.524Z","repository_id":143907920,"created_at":"2025-08-17T01:22:13.524Z","updated_at":"2025-08-17T01:22:13.524Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32448369,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"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":["human-readable-formats","second-formatter","seconds-to-hms","time-converter","time-format"],"created_at":"2024-11-29T01:25:36.999Z","updated_at":"2026-04-29T23:31:42.251Z","avatar_url":"https://github.com/atayahmet.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Convert Seconds to Readable Format\n\n[![npm version](https://badge.fury.io/js/sec-to-format.svg)](https://badge.fury.io/js/sec-to-format) [![Build Status](https://travis-ci.org/atayahmet/sec-to-format.svg?branch=master)](https://travis-ci.org/atayahmet/sec-to-format)\n\n```sh\n$ npm i sec-to-format --save\n```\n\n## Usage\n\n```ts\nimport secToFormat from 'sec-to-format';\n```\n\n```ts\nsecToFormat(3601, '%H hour %s sec');\n// 1 hour 1 sec\n```\n\n```ts\nsecToFormat(90643, '%D day %H hour %m minutes %s secs');\n// 1 day 1 hour 10 minutes 43 secs\n```\n\n```ts\nsecToFormat(90643, '%D day %H:%m:%s');\n// 1 day 1:10:43\n```\n\n## Setters\n\nYou can manipulate outputs by adding setter to the units.\n\n```ts\nconst setters = {\n  '%H': hour =\u003e (hour \u003c 10 ? `0${hour}` : hour),\n  '%m': min =\u003e (min \u003c 10 ? `0${min}` : min),\n};\n\nsecToFormat(7300, '%H:%m:%s');\n// 2:1:40\n\nsecToFormat(7300, '%H:%m:%s', { setters });\n// 02:01:40\n```\n\n## Unit Table\n\n| Unit | Description |\n| ---- | ----------- |\n| %s   | Second      |\n| %m   | Minute      |\n| %H   | Hour        |\n| %D   | Day         |\n| %W   | Week        |\n| %MM  | Month       |\n| %Y   | Year        |\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatayahmet%2Fsec-to-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatayahmet%2Fsec-to-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatayahmet%2Fsec-to-format/lists"}