d2l-hypermedia-constants
v6.164.0
Published
Library of constants for communicating with D2L's Hypermedia APIs
Maintainers
Readme
d2l-hypermedia-constants
Library of constants useful when using hypermedia.
Installation
d2l-hypermedia-constants can be installed from NPM:
npm install --save d2l-hypermedia-constantsUsage
Node.js
const hypermediaConstants = require('d2l-hypermedia-constants');
console.log(hypermediaConstants.Actions);
console.log(hypermediaConstants.Classes);
console.log(hypermediaConstants.Rels);ES6 Module Import
import {Actions, Classes, Rels} from 'd2l-hypermedia-constants';
console.log(Actions);
console.log(Classes);
console.log(Rels);ES6 Module Global
<script type="module" src="../d2l-hypermedia-constants/d2l-hypermedia-constants.js"></script>
<script>
console.log(D2L.Hypermedia.Actions);
console.log(D2L.Hypermedia.Classes);
console.log(D2L.Hypermedia.Rels);
</script>Versioning and Releasing
This repo is configured to use semantic-release. Commits prefixed with fix: and feat: will trigger patch and minor releases when merged to master.
To learn how to create major releases and release from maintenance branches, refer to the semantic-release GitHub Action documentation.
Coding styles
See the Best Practices & Style Guide for information on naming conventions, plus information about the EditorConfig rules used in this repo.
