@rawcmd/typewriters
TypeScript icon, indicating that this package has built-in type declarations

0.3.12 • Public • Published

Collection of typewriters for styling command-line messages for Rawcmd.

Rawcmd allows for building command-line user interfaces in NodeJS. It's a lightweight and open-source framework, written with TypeScript. It's actively maintained, well tested and already used in production environments. The source code is available on GitHub where you can also find our issue tracker.

Example

// style text
textTypewriter({
  dim: true,
  bold: true,
})('Hello world!');

// write table
tableTypewriter({
  separator: '  ',
  columns: [
    {
      index: 0,
      dim: true,
      bold: true,
    },
    {
      index: 1,
      dim: true,
      bold: true,
    },
  ],
})([
  ['John', 'Smith'],
  ['Bob', 'Dog'],
]);

Package Sidebar

Install

npm i @rawcmd/typewriters

Weekly Downloads

1

Version

0.3.12

License

MIT

Unpacked Size

88.5 kB

Total Files

75

Last publish

Collaborators

  • xpepermint