{"id":28330252,"url":"https://github.com/mgthomas99/degrad","last_synced_at":"2026-04-16T01:32:57.456Z","repository":{"id":66156480,"uuid":"107272170","full_name":"mgthomas99/degrad","owner":"mgthomas99","description":"Angular unit conversion between degrees, radians, and gradians.","archived":false,"fork":false,"pushed_at":"2018-05-23T19:39:46.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-15T20:56:00.268Z","etag":null,"topics":["conversion","javascript","typescript","typings","unit-conversion"],"latest_commit_sha":null,"homepage":null,"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/mgthomas99.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,"publiccode":null,"codemeta":null}},"created_at":"2017-10-17T13:27:17.000Z","updated_at":"2023-03-04T05:45:15.000Z","dependencies_parsed_at":"2023-02-21T00:16:31.649Z","dependency_job_id":null,"html_url":"https://github.com/mgthomas99/degrad","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mgthomas99/degrad","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgthomas99%2Fdegrad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgthomas99%2Fdegrad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgthomas99%2Fdegrad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgthomas99%2Fdegrad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgthomas99","download_url":"https://codeload.github.com/mgthomas99/degrad/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgthomas99%2Fdegrad/sbom","scorecard":{"id":639594,"data":{"date":"2025-08-11","repo":{"name":"github.com/mgthomas99/degrad","commit":"a60ab2ed10f7c4e87c795a5c2bf7bd6eb0512e32"},"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":"Code-Review","score":0,"reason":"Found 0/20 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":"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":"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 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"}}]},"last_synced_at":"2025-08-21T10:19:19.073Z","repository_id":66156480,"created_at":"2025-08-21T10:19:19.073Z","updated_at":"2025-08-21T10:19:19.073Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31867710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"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":["conversion","javascript","typescript","typings","unit-conversion"],"created_at":"2025-05-26T14:41:08.313Z","updated_at":"2026-04-16T01:32:57.445Z","avatar_url":"https://github.com/mgthomas99.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[circleci-shield-url]: https://img.shields.io/circleci/project/github/mgthomas99/degrad.svg\n[circleci-url]: https://circleci.com/gh/mgthomas99/degrad\n[codecov-shield-url]: https://img.shields.io/codecov/c/github/mgthomas99/degrad.svg\n[codecov-url]: https://codecov.io/gh/mgthomas99/degrad\n[license-shield-url]: https://img.shields.io/github/license/mgthomas99/degrad.svg\n[license-url]: https://github.com/mgthomas99/degrad/blob/master/LICENSE\n[logo-image-url]: https://raw.githubusercontent.com/mgthomas99/degrad/master/www/logo.png\n[logo-url]: https://github.com/mgthomas/degrad\n[npm-shield-url]: https://img.shields.io/npm/v/degrad.svg\n[npm-url]: https://www.npmjs.com/package/degrad\n\n[![Degrad][logo-image-url]][logo-url]\n\n[![npm][npm-shield-url]][npm-url]\n[![CircleCI][circleci-shield-url]][circleci-url]\n[![CodeCov][codecov-shield-url]][codecov-url]\n[![license][license-shield-url]][license-url]\n\nDegrad is a simple library that provides unit conversion between **deg**rees,\n**rad**ians, and **grad**ians.\n\n## Usage\n\n### Install\n\n```shell\n    npm install degrad --save // -\u003e Install via NPM\n    yarn add degrad           // -\u003e Install via Yarn\n```\n\n### Build\n\n`degrad` is built using [Gulp](https://gulpjs.com/), a task automation service.\nWhen building `degrad`, you can either invoke Gulp directly via the `gulp`\ncommand, or allow NPM to take care of invoking Gulp by executing\n`npm run build`. Both commands do exactly the same task internally.\n\n```shell\n    npm run build   // Build via NPM script\n```\n\n### Usage\n\n`degrad` exposes a small library of functions for accurately converting between\ndegrees, radians, and gradians.\n\n```ts\n    import { expect } from \"chai\";\n    import {\n        degreesToGradians as deg2grad,\n        degreesToRadians  as deg2rad ,\n        gradiansToDegrees as grad2deg,\n        gradiansToRadians as grad2rad,\n        radiansToDegrees  as rad2deg ,\n        radiansToGradians as rad2grad\n    } from \"degrad\";\n\n    // Some functionality tests, to prove the algorithm is correct by producing\n    // the correct result.\n    deg2grad(30) // -\u003e 33.33333̅3...\n    deg2rad(30)  // -\u003e 0.5235987...\n    grad2deg(30) // -\u003e 27.000004...\n    grad2rad(30) // -\u003e 0.4712388...\n    rad2deg(30)  // -\u003e 1718.8733...\n    rad2grad(30) // -\u003e 1909.8593...\n\n    // Some logical tests, to prove the algorithm is consistent and logical.\n    const x = Math.random();\n    expect(deg2grad(x)).to.equal(rad2grad(deg2rad(x)));\n    expect(grad2rad(x)).to.equal(deg2rad(grad2deg(x)));\n    expect(rad2deg(x)).to.equal(grad2deg(rad2grad(x)));\n```\n\n## License\n\nPlease see the `LICENSE` file for license information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgthomas99%2Fdegrad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgthomas99%2Fdegrad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgthomas99%2Fdegrad/lists"}