# zeichen

> A documentation creator.

Latest version **1.0.1** (published 2019-01-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install zeichen
pnpm add zeichen
yarn add zeichen
bun add zeichen
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-01-02 |
| First published | 2019-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hayden Higginbotham |
| Maintainers | haydenhigg |
| Keywords | documentation, automation |

## Links

- npm: https://www.npmjs.com/package/zeichen
- npm.io page: https://npm.io/package/zeichen

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-01-02
- 1.0.0 — 2019-01-02

## README

# Zeichen
Zeichen is a Javascript package to create documentation from code. Create an instance with:
```javascript
const Zeichen = require("zeichen");
var zc = new Zeichen();
```
## How to Create Documentation
So far you can create text, which is just plain text and must be the innermost text-containing element inside every other element, no matter how many nested elements there are, headers, syntax-highlighted code blocks, and links.
```javascript
zc.newText("some text to be put into the element"); // text
zc.newHeader(zc.newText("the text"), 3); // the second argument is the size (this would be h3 in HTML)
zc.newCode(zc.newText("console.log('Hello world!');"), "javascript"); // code block with javascript syntax highlighting (only for markdown)
zc.newLink(zc.newText("Link label text"), "http://google.com/"); // creates a link - if the second argument is not defined then the link text is the url
```
To add an element to the item that the instance displays use zc.addElement:
```javascript
zc.addElement(zc.newText("this is a text element but any other element could go here too"));
```
## How to See Your Documentation
note - code blocks have inconsistent representation in HTML form
```javascript
zc.markdown() //=> returns the markdown representation of an instance
zc.html() //=> returns the html representation of an instance
zc.display() //=> starts a server to see the html representation of an instance quickly
```

---
_Source: https://npm.io/package/zeichen · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
