{"id":19432754,"url":"https://github.com/brightspace/d2l-hypermedia-constants","last_synced_at":"2026-03-05T22:35:22.388Z","repository":{"id":18754730,"uuid":"84986538","full_name":"Brightspace/d2l-hypermedia-constants","owner":"Brightspace","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-27T20:53:56.000Z","size":309,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":64,"default_branch":"master","last_synced_at":"2025-04-06T10:01:57.653Z","etag":null,"topics":["browser","polymer","web-components"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Brightspace.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-14T18:59:20.000Z","updated_at":"2025-03-27T20:53:59.000Z","dependencies_parsed_at":"2023-01-13T19:59:47.758Z","dependency_job_id":"2c2f79f8-b9e6-47a2-a3f7-e9f2c8fc2265","html_url":"https://github.com/Brightspace/d2l-hypermedia-constants","commit_stats":{"total_commits":318,"total_committers":67,"mean_commits":4.746268656716418,"dds":0.8647798742138365,"last_synced_commit":"93d49dbe9777cc7506e5fa602d1ccbde93d4babc"},"previous_names":[],"tags_count":222,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brightspace%2Fd2l-hypermedia-constants","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brightspace%2Fd2l-hypermedia-constants/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brightspace%2Fd2l-hypermedia-constants/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brightspace%2Fd2l-hypermedia-constants/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Brightspace","download_url":"https://codeload.github.com/Brightspace/d2l-hypermedia-constants/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250704547,"owners_count":21473710,"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","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":["browser","polymer","web-components"],"created_at":"2024-11-10T14:37:00.776Z","updated_at":"2026-03-05T22:35:22.321Z","avatar_url":"https://github.com/Brightspace.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# d2l-hypermedia-constants\n\nLibrary of constants useful when using hypermedia.\n\n## Installation\n\n`d2l-hypermedia-constants` can be installed from NPM:\n```shell\nnpm install --save d2l-hypermedia-constants\n```\n\n## Usage\n\n### Node.js\n\n```js\nconst hypermediaConstants = require('d2l-hypermedia-constants');\nconsole.log(hypermediaConstants.Actions);\nconsole.log(hypermediaConstants.Classes);\nconsole.log(hypermediaConstants.Rels);\n```\n\n### ES6 Module Import\n\n```js\nimport {Actions, Classes, Rels} from 'd2l-hypermedia-constants';\nconsole.log(Actions);\nconsole.log(Classes);\nconsole.log(Rels);\n```\n\n### ES6 Module Global\n\n```html\n\u003cscript type=\"module\" src=\"../d2l-hypermedia-constants/d2l-hypermedia-constants.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\nconsole.log(D2L.Hypermedia.Actions);\nconsole.log(D2L.Hypermedia.Classes);\nconsole.log(D2L.Hypermedia.Rels);\n\u003c/script\u003e\n```\n\n## Versioning \u0026 Releasing\n\nThe [incremental-release GitHub Action](https://github.com/BrightspaceUI/actions/tree/main/incremental-release) is called from the `release.yml` GitHub Action workflow to handle version changes and releasing.\n\nWhen a PR is merged, a minor version bump will happen automatically, a release will be created, and the new version will be published to NPM.\n\n## Coding styles\n\nSee the [Best Practices \u0026 Style Guide](https://github.com/Brightspace/valence-ui-docs/wiki/Best-Practices-\u0026-Style-Guide) for information on naming conventions, plus information about the [EditorConfig](http://editorconfig.org) rules used in this repo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrightspace%2Fd2l-hypermedia-constants","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrightspace%2Fd2l-hypermedia-constants","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrightspace%2Fd2l-hypermedia-constants/lists"}