svelte-log-view
Version:
svelte log viewer component
56 lines (39 loc) • 2.38 kB
Markdown
[](https://svelte.dev)
[](https://www.npmjs.com/package/svelte-log-view)
[](https://spdx.org/licenses/0BSD.html)
[](https://bundlejs.com/?q=svelte-log-view)
[](https://npmjs.org/package/svelte-log-view)
[](https://github.com/arlac77/svelte-log-view/issues)
[](https://actions-badge.atrox.dev/arlac77/svelte-log-view/goto)
[](https://github.com/prettier/prettier)
[](http://commitizen.github.io/cz-cli/)
[](https://snyk.io/test/github/arlac77/svelte-log-view)
[](https://coveralls.io/github/arlac77/svelte-log-view)
[](https://github.com/DevExpress/testcafe)
# svelte-log-view
show log content
# Example
Check out the code in the [tests/app](/tests/app) folder,
or the [live example](https://arlac77.github.io/components/svelte-log-view/tests/app/index.html).
```js
const source = {
abort: async () => { }, //abort data fetching
fetch: async function * f(cursor, number) // fetch entries starting after cursor
{ yield "my log entry 1"; yield "my log entry 2"; }
};
```
Or the [live example](https://svelte-log-view.netlify.app/tests/app/).
# API
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
## Table of Contents
# install
With [npm](http://npmjs.org) do:
```shell
npm install svelte-log-view
```
With [yarn](https://yarnpkg.com) do:
```shell
yarn add svelte-log-view
```
# license
BSD-2-Clause