@airmark/quiver
v0.8.0
Published
Airmark Quiver — Air Force and DAF document Quills for Quillmark.
Downloads
907
Maintainers
Readme
@airmark/quiver
A Quillmark Source Quiver of Air Force and DAF official-document Quills, sourced from tonguetoquill-collection and aligned to the current Quillmark spec.
Contents
| Quill | Version | Description |
|--------------|---------|-----------------------------------------------------------------------------------|
| usaf_memo | 0.2.0 | USAF / DAF Official Memorandum (AFH 33-337) |
| af4141 | 0.1.0 | AF Form 4141 — Individual's Record of Duties and Experience (Ground Environment) |
| daf1206 | 0.1.0 | DAF Form 1206 — Nomination for Award |
| daf4392 | 0.1.0 | DAF Form 4392 — Pre-Departure Safety Briefing (Page 2) |
Install
npm install @airmark/quiver @quillmark/[email protected] @quillmark/[email protected]Usage
Load via the convenience helper
import { Quillmark, Document } from '@quillmark/wasm';
import { loadAirmarkQuiver } from '@airmark/quiver';
const engine = new Quillmark();
const quiver = await loadAirmarkQuiver();
const doc = Document.fromMarkdown(`---
QUILL: [email protected]
memo_for: ["ORG/SYMBOL"]
memo_from: ["ORG/SYMBOL", "Organization Name", "123 Street Ave", "City ST 12345-6789"]
subject: Hello Quillmark
signature_block: ["FIRST M. LAST, Rank, USAF", "Duty Title"]
---
Body of the memo.`);
const quill = await quiver.getQuill(doc.quillRef, { engine });
const { artifacts } = quill.render(doc, { format: 'pdf' });Load from the exported directory
import { Quiver } from '@quillmark/quiver/node';
import { QUIVER_DIR } from '@airmark/quiver';
const quiver = await Quiver.fromDir(QUIVER_DIR);Layout
This package is a Source Quiver conforming to the canonical layout:
Quiver.yaml
quills/
<name>/
<x.y.z>/
Quill.yaml
plate.typ
example.md
assets/
packages/Testing
quiver.test.js at the repo root runs the
@quillmark/quiver/testing
suite under the built-in node:test runner,
validating each (quill, version) pair through the full load +
engine.quill(tree) compile pipeline:
npm install
npm testLicense
Apache-2.0. Individual Quills carry their own licensing terms; see the
packages/ directory inside each Quill for upstream font and template licenses.
