• Stars
    star
    153
  • Rank 243,368 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 6 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The terminal presentation tool.

Qov · Build Status npm PRs Welcome GitHub license

The terminal presentation tool.

preivew

Features

  • No third-party dependencies
  • Tagged template literals
  • Styled characters
  • Fragments support
  • Customized keyBinding
  • Auto-sliding
  • Easy to work with other libraries

Getting started

npm install qov

Prepare texts for rendering slides.

const Qov = require('qov')
const qov = new Qov()

qov.section`Section One`            
qov.section`Section Two`           

// Expression interpolation
qov.section`Section ${() => 'Three'}` 

// Render slides
qov.render()

Check demo for more details.

APIs

Constructor

const qov = new Qov({ step?, keymap? })

step: milliseconds between auto-sliding, default is 2000. keymap: customize keyBindings by yourself, defalut keymap is here.

Styles

qov.styles.<Style>(str)

Style: style name, possiable value is blod, faint, italic, underline, slowBlink, rapidBlink, reverse or crossedOut.

str: characters which you want to render.

Colors

Use paint() functon to render characters with color and backgroundColor.

qov.colors.<Color>(str, isBg?)
qov.colors.paint(bgColor, fgColor, str)

Color, bgColor, fgColor: color name(black, red, green, yellow, blue, magenta, cyan, white).

isBg: render characters by backgroundColor or not, default is false.

Much more

via Tagged template literals, you can use other JS packages in Qov slides.The only requirement is that package needs to return a string.

License

MIT

More Repositories

1

ervy

Bring charts to terminal.
JavaScript
1,580
star
2

bing-chat-prompt-keywords

Use specific keywords to chat with Bing AI more effectively.
202
star
3

hexo-theme-polk

Simple blog theme for Hexo, focusing on articles.
Stylus
95
star
4

css-centering-explorer

Find the way to center things in CSS.
JavaScript
55
star
5

inkval

Generating Static Sites with Pandoc and Bash
Shell
35
star
6

mutag

A simple library to get metadata of MP3 files.
JavaScript
32
star
7

bing-chat-bookmarklets

A collection of bookmarklets for the Bing chat client.
JavaScript
25
star
8

scen

Create sections in the terminal.
JavaScript
17
star
9

hexo-theme-samljen

Another simple blog theme for Hexo, inspired by Choo.
JavaScript
14
star
10

spotlight-wallpaper

Use spotlight lock screen images as wallpaper.
AutoIt
10
star
11

python-tools

Some software tools built with Python.
Python
8
star
12

knao

Place output of your previous command into the clipboard.
TypeScript
6
star
13

learn-javascript

JavaScript 学习之旅
JavaScript
4
star
14

my-blog

Personal blog.
EJS
4
star
15

incipar

Minimal starter for React app.
JavaScript
4
star
16

unity-games

Unity 游戏代码片断
C#
4
star
17

sublime-svg-preview

Sublime Text plugin to preview SVG files.
Python
2
star
18

tools

Some useful tools.
Batchfile
2
star
19

multi-window-pong-game

Play pong game across multiple windows on the same origin using localStorage
JavaScript
1
star
20

pkgtree

Show dependency tree of node project.
JavaScript
1
star
21

music-player

Music player for myself, based on Create React App.
JavaScript
1
star
22

tusa

Tiny Flat-File Content Management System.
TypeScript
1
star