certlogic-html

HTML renderer(s) for CertLogic expressions.

Usage no npm install needed!

<script type="module">
  import certlogicHtml from 'https://cdn.skypack.dev/certlogic-html';
</script>

README

CertLogic HTML

An NPM package with React-based HTML renderer(s) for CertLogic expressions, so those expressions can be displayed in a more human-readable way.

API

This NPM package exposes the following feature:

  • <CompactExprRendering expr={<CertLogic expression>}>: a stateless React component that renders a CertLogic expression in a notation that's more compact than the underlying JSON. (The resulting DOM is static, so can be statically rendered.)

Licensing

Copyright (c) 2021 Meinte Boersma (as working for the Dutch Ministry of Health, Science, and Sports, and on behalf of/in support of the European Health Network), and all other contributors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.

You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the LICENSE for the specific language governing permissions and limitations under the License.