├── HISTORY.md ├── ink-console.gif ├── .editorconfig ├── src ├── consoleMethods.ts ├── example.tsx ├── actions │ ├── pin.ts │ ├── pageUp.ts │ ├── pageDown.ts │ ├── shrink.ts │ ├── index.ts │ ├── down.ts │ ├── expand.ts │ ├── topStop.ts │ ├── up.ts │ └── __test__ │ │ ├── down.test.ts │ │ └── expand.test.ts ├── __test__ │ ├── renderNormalEntry.test.ts │ ├── __snapshots__ │ │ └── renderDirOutput.test.ts.snap │ ├── getDepth.test.ts │ └── renderDirOutput.test.ts ├── Props.ts ├── renderNormalEntry.ts ├── LogEntry.ts ├── getDepth.ts ├── renderEntry.ts ├── State.ts ├── Counter.tsx ├── renderString.ts ├── LogCatcher.ts ├── countRows.ts ├── renderDirOutput.ts └── index.tsx ├── .travis.yml ├── tsconfig.json ├── .gitignore ├── LICENSE.md ├── README.md └── package.json /HISTORY.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## v0.0.1: 2017-xx-xx 4 | 5 | - Initial release 6 | -------------------------------------------------------------------------------- /ink-console.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ForbesLindesay/ink-console/HEAD/ink-console.gif -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | charset = utf-8 6 | end_of_line = lf 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /src/consoleMethods.ts: -------------------------------------------------------------------------------- 1 | export type LogMethod = 'dir' | 'log' | 'info' | 'warn' | 'error'; 2 | const consoleMethods: LogMethod[] = ['dir', 'log', 'info', 'warn', 'error']; 3 | export default consoleMethods; 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | sudo: false 4 | 5 | node_js: 6 | - "6" 7 | - "8" 8 | 9 | script: npm test && npm run prettier:check 10 | 11 | notifications: 12 | email: 13 | on_success: never 14 | -------------------------------------------------------------------------------- /src/example.tsx: -------------------------------------------------------------------------------- 1 | import {h, render} from 'ts-ink'; 2 | import Console from './'; 3 | import Counter from './Counter'; 4 | 5 | render( 6 |