JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7445
  • Score
    100M100P100Q125046F
  • License MIT

A pure-JS Schematron implementation for Node, browsers and CLI

Package Exports

  • node-schematron

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-schematron) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-schematron

This is an Schematron minimal syntax implementation for front- and back-end Javascript. It can be used as a NodeJS dependency as well as in the browser (ie. wrapped by Webpack). It returns a JSON object with the (resolved) messages of your assertions.


Current:

  • <rule>
  • <pattern>
  • <schema>
  • <assert>
  • <report>
  • <name>, with @path
  • <let>, only in <rule>. Variables can be used in report@test and assert@test, as well as succeeding let@value, name@path (todo test).
  • <value-of> and @select

Do want:

  • Minimal syntax
  • <phase>, <active>
  • <ns>
  • <extends>
  • <param>
  • <diagnostics>, <diagnostic>

Do want do:

  • Reduce dependencies as a lib, but have decent functionality as CLI
  • Use more of the words in the ISO/IEC 19757-3 spec
  • Unit test on aspects of that spec
  • Refactor the "isAssertion" and "isReport" flags