@rawcmd/typewriters
Version:
Collection of typewriters for styling command-line messages for Rawcmd.
70 lines (66 loc) • 3.4 kB
Plain Text
>>> @rawcmd/typewriters
npx nyc npx hayspec test
tests/index.test.ts
exposed content ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
tests/typewriters/commands.test.ts
builds output string ⚑
tests/typewriters/contents.test.ts
builds output string ⚑
tests/typewriters/error.test.ts
builds output string ⚑
handles unknown errors ⚑
tests/typewriters/help.test.ts
builds output string ⚑
tests/typewriters/links.test.ts
builds output string ⚑
tests/typewriters/log.test.ts
builds output string with message X 2019-10-10T11:15:40.571Z 2019-10-10T11:15:40.571Z
⚑
builds output string with message and namespace X 2019-10-10T11:15:40.573Z 2019-10-10T11:15:40.573Z
⚑
tests/typewriters/options.test.ts
builds output string ⚑
tests/typewriters/row.test.ts
passes through ⚑ ⚑ ⚑
builds string columns ⚑
supports column width ⚑
supports text truncation ⚑
supports word wrapping ⚑
supports text alignment ⚑
supports custom column separator simbol ⚑
supports custom truncation simbol ⚑
tests/typewriters/summary.test.ts
builds output string ⚑
tests/typewriters/text.test.ts
passes through ⚑ ⚑ ⚑ ⚑
supports bold text ⚑ ⚑
supports text dimming ⚑
supports underlined text ⚑
supports text color inverse ⚑
supports text color ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
supports text background ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
tests/typewriters/title.test.ts
builds output string ⚑
tests/typewriters/usage.test.ts
builds output string ⚑
28 passing
-----------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
-----------------|----------|----------|----------|----------|-------------------|
All files | 94.63 | 78.75 | 96.88 | 94.3 | |
src | 100 | 100 | 100 | 100 | |
index.ts | 100 | 100 | 100 | 100 | |
src/typewriters | 94.2 | 78.75 | 96.88 | 93.95 | |
commands.ts | 94.12 | 83.33 | 100 | 93.75 | 35 |
contents.ts | 94.12 | 75 | 100 | 94.12 | 42 |
error.ts | 94.44 | 83.33 | 100 | 94.12 | 58 |
help.ts | 100 | 100 | 100 | 100 | |
links.ts | 94.12 | 83.33 | 100 | 93.75 | 35 |
log.ts | 93.75 | 50 | 100 | 93.75 | 36 |
options.ts | 94.44 | 70 | 100 | 94.12 | 35 |
row.ts | 100 | 81.25 | 100 | 100 | 47,64,93 |
summary.ts | 93.33 | 75 | 100 | 92.86 | 45 |
text.ts | 92.86 | 93.75 | 100 | 92.31 | 29,43 |
title.ts | 90.91 | 75 | 100 | 90.91 | 39 |
usage.ts | 85 | 50 | 75 | 84.21 | 46,52,58 |
-----------------|----------|----------|----------|----------|-------------------|