# wow-mum-component

> Impressive start-up logs right in the browser

Latest version **1.0.3** (published 2022-05-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install wow-mum-component
pnpm add wow-mum-component
yarn add wow-mum-component
bun add wow-mum-component
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2022-05-07 |
| First published | 2022-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 325.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | dave-kennedy |
| Keywords | impressive, start-up, logs, fun, joke |

## Links

- npm: https://www.npmjs.com/package/wow-mum-component
- Repository: https://github.com/dave-kennedy/wow-mum-component
- Homepage: https://github.com/dave-kennedy/wow-mum-component#readme
- Issues: https://github.com/dave-kennedy/wow-mum-component/issues
- npm.io page: https://npm.io/package/wow-mum-component

## Dependencies (1)

- [wow-mum-look-no-hands](https://npm.io/package/wow-mum-look-no-hands.md) ^1.0.0

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2022-05-07
- 1.0.1 — 2022-05-05
- 1.0.0 — 2022-05-05

## README

![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBl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-no-hands](https://github.com/hmmmsausages/wow-mum-look-no-hands).

## Development

Clone this repository, then run:

    npm install
    npm start

To build the component for production, run:

    npm run build

To execute the tests, run:

    npm test

## Using this component on an HTML page

### Step 1: import the component

Add the following script tag:

    <script type="module" src="https://unpkg.com/wow-mum-component"></script>

Or install the package:

    npm install wow-mum-component

Then add the following script tag:

    <script type="module" src="node_modules/wow-mum-component/dist/wow-mum-component/wow-mum-component.esm.js"></script>

### Step 2: create the component instance

#### Option 1: set the messages directly

    <wow-mum-component />

    <script>
      (async () => {
        await customElements.whenDefined('wow-mum-component');
        const component = document.querySelector('wow-mum-component');

        component.setMessages([
          {
            'logLevel': 'warn',
            'message': '💾 Defragment Windows 95 C:\ drive. This might take a while...'
          },
          {
            'delayInMS': 1000,
            'logLevel': 'error',
            'message': '🙈 Discovered year 2020. Aborting unnecessary Windows 95 operations...'
          },
          {
            'delayInMS': 2000,
            'message': '⚙️ Processing super-vortex decision algorithm...'
          }
        ]);
      })();
    </script>

#### Option 2: load the messages from a JSON string

    <wow-mum-component
      message-data='[
        {
          "logLevel": "warn",
          "message": "💾 Defragment Windows 95 C:\\ drive. This might take a while..."
        },
        {
          "delayInMS": 1000,
          "logLevel": "error",
          "message": "🙈 Discovered year 2020. Aborting unnecessary Windows 95 operations..."
        },
        {
          "delayInMS": 2000,
          "message": "⚙️ Processing super-vortex decision algorithm..."
        }
      ]' />

Make sure to use single quotes around the value and escape any backslashes inside.

#### Option 3: load the messages from a JSON file

    <wow-mum-component message-data-url="messages.json" />

Make sure the URL is accessible from the domain of the hosting page.

---
_Source: https://npm.io/package/wow-mum-component · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
