Coder Social home page Coder Social logo

letter's Introduction

Professionelle Briefe per YAML-Konfiguration

Erzeugt PDF-Dateien aus YAML-Dateien. Zum Beispiel dieses PDF aus jenem YAML.

Orientiert sich lose an der DIN-Norm 5008.

Ausführen

npx @textbrocken/letter -i brief.yml

YAML

YAML-Hauptfelder

YAML-Feld Typ Beschreibung
header String Text über dem Adressfeld
sender String Zeile über dem Adressaten
address String Adressfeld
subject String Betreff
body String Eigentlicher Brieftext
salutation [String, String] [Hochachtungsvoll, Max Mustermann]

YAML-Metadaten

YAML-Feld Typ Beschreibung Default
meta.date String Datum Heute
meta.pagenums Boolean Seitennummern false
meta.punchingMark Boolean Lochmarke false
meta.foldingMarks Boolean Faltmarken false
meta.justifyBody Boolean Blocksatz false
meta.hyphenate Boolean Silbentrennung true
meta.fixTypesetting Boolean Typographische Behandlung von Bindestrichen, Anführungszeichen etc. true
meta.largeFont Boolean große Schrift false

CLI-Optionen

Option Beschreibung
-i, --input Input YAML file (alternatively: pass YAML via stdin)
-o, --output Output PDF file (defaults to input yaml file name with .pdf extension)
-v, --verbose Log verbosely (default false)
-q, --quiet Log nothing (default false)
-a, --auto-open Open PDF file in PDF viewer (default true)

letter's People

Contributors

mbaer3000 avatar

Stargazers

Mark Todd avatar

Watchers

James Cloos avatar  avatar

Forkers

ukaiser

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.