TIER FORGE IS ONLINE: CONSTRUCT AND VISUALIZE RANKED DATA SETS WITH DRAG-AND-DROP PRECISION. ACCESS AT /APPS/TIER-FORGE.

See Tier Forge
doku.js
Back to Projects
2024Active Development

doku.js

NodeTUInpm

Doku.js is a terminal UI text/document viewer that supports a custom documentation syntax called `doky`.

Doku.js Header
Doku.js Header

Doku.js is a terminal UI text/document viewer that supports a custom documentation syntax called doky.

Features:

  • Customizable Display: Border colors, centered content, frame positioning, and text sliding.
  • Pattern Transformation: Automatically converts common text patterns into more visually appealing characters (e.g., --- to , ==> to ).
  • Text Search: Built-in functionality for searching within documents.
  • App Commands: Interactive commands for navigation (next/previous line/page), jumping to specific lines, cycling border colors, centering content, toggling text slide, and more.
  • Command Line Interface: Provides a command line within the application for advanced actions like switch, toggle, find, and time settings.
  • Events: Supports doku-start and doku-end events for integration into other Node.js applications.
  • Parsing: Efficiently parses plain text files, adapting to terminal size changes.

Installation:

Install globally via npm: npm install -g doku.js. Can also be used locally with npx doku or integrated as a dependency in Node.js projects.

Doku.js Image
Doku.js Image

Doky - Custom Documentation Syntax:

doky allows for custom commands to control terminal display, including:

  • Tables: Define tabular data with @{begin-table}@ and @{end-table}@ commands.
  • Code Blocks: Display inline or multiline code using triple backticks (```).
  • Coloring: Extensive commands for foreground, background, and text effects (e.g., c.fg.red, c.bg.blue, c.underscore).
  • Extras: Commands like shrug (¯\(ツ)/¯) and startdate.
  • Escaping: Mechanism to escape commands for literal display.