Terminal log viewer.
https://luna.liriliri.io/?path=/story/log
Add the following script and style to your page.
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/luna-text-viewer/luna-text-viewer.css" />
<script src="//cdn.jsdelivr.net/npm/luna-text-viewer/luna-text-viewer.js"></script>
<script src="//cdn.jsdelivr.net/npm/luna-log/luna-log.js"></script>
You can also get it on npm.
npm install luna-log luna-text-viewer --save
import 'luna-text-viewer/luna-text-viewer.css'
import LunaLog from 'luna-log'
const log = new LunaLog(container)
log.setOption({
log: 'npm install',
})
- log(string): Log to display.
- maxHeight(number): Max viewer height.
- wrapLongLines(boolean): Wrap lone lines.
Append log.