# sane5ek-loglive-fork

> Render changelog.md on the fly.

Latest version **0.0.3** (published 2021-03-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install sane5ek-loglive-fork
pnpm add sane5ek-loglive-fork
yarn add sane5ek-loglive-fork
bun add sane5ek-loglive-fork
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2021-03-24 |
| First published | 2021-03-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 151 |
| Author | egoist |
| Maintainers | sane5ek |
| Keywords | changelog, vue, markdown |

## Links

- npm: https://www.npmjs.com/package/sane5ek-loglive-fork
- Repository: https://github.com/egoist/loglive
- Homepage: https://github.com/egoist/loglive#readme
- Issues: https://github.com/egoist/loglive/issues
- npm.io page: https://npm.io/package/sane5ek-loglive-fork

## Dependencies (10)

- [poi](https://npm.io/package/poi.md) ^9.3.9
- [vue](https://npm.io/package/vue.md) ^2.4.4
- [marked3](https://npm.io/package/marked3.md) ^0.5.1
- [unfetch](https://npm.io/package/unfetch.md) ^3.0.0
- [date-fns](https://npm.io/package/date-fns.md) ^1.28.5
- [anchor-js](https://npm.io/package/anchor-js.md) ^4.3.0
- [nano-assign](https://npm.io/package/nano-assign.md) ^1.0.0
- [promise-polyfill](https://npm.io/package/promise-polyfill.md) ^6.0.2
- [github-markdown-css](https://npm.io/package/github-markdown-css.md) ^2.8.0
- [babel-preset-vue-app](https://npm.io/package/babel-preset-vue-app.md) ^2.0.0

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2021-03-24
- 0.0.2 — 2021-03-24
- 0.0.1 — 2021-03-23

## README

# LogLive

This is inspired by [headwayapp.co](https://headwayapp.co) but as a single script you can add to an HTML file.

<img src="https://i.loli.net/2017/07/27/597995184bb02.png" width="800" alt="preview">

[![NPM version](https://img.shields.io/npm/v/loglive.svg?style=flat)](https://npmjs.com/package/loglive) [![NPM downloads](https://img.shields.io/npm/dm/loglive.svg?style=flat)](https://npmjs.com/package/loglive) [![CircleCI](https://circleci.com/gh/egoist/loglive/tree/master.svg?style=shield)](https://circleci.com/gh/egoist/loglive/tree/master)  [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat)](https://github.com/egoist/donate)

## Install

```bash
yarn add loglive
```

## Table of Contents

<!-- toc -->

- [Usage](#usage)
- [Changelog Format](#changelog-format)
  * [Example](#example)
  * [Site name](#site-name)
  * [Changelog Title](#changelog-title)
  * [Change Type](#change-type)
- [Front Matters](#front-matters)
  * [website](#website)
- [Contributing](#contributing)
- [Author](#author)

<!-- tocstop -->

## Usage

You can simply create an `index.html` and include `loglive` there:

```html
<html>
<head>
  <title>App Title</title>
  <link rel="stylesheet" href="https://unpkg.com/loglive/dist/loglive.css">
</head>
<body>
  <div id="app"></div>
  <script src="https://unpkg.com/loglive"></script>
  <script>
    new LogLive({
      el: '#app'
    })
    // And that's it!
  </script>
</body>
</html>
```

Then you can start to write a `CHANGELOG.md`, by default LogLive will read from `http://your-website/CHANGELOG.md`, however you can use a custom path:

```js
new LogLive({
  el: '#app',
  changelog: '/path/to/my-changelog.md'
})
```

<details><summary>You can also use it as a Vue component</summary>

```vue
<template>
  <div id="app">
    <log-live 
      changelog="changelog">
    </log-live>
  </div>
</template>

<script>
import { LogLive } from 'loglive'

export default {
  components: {
    LogLive
  },

  data() {
    return {
      changelog: '/changelog.md'
    }
  }
}
</script>
```
</details>

## Changelog Format

### Example

```md
# My Website

## Add TypeScript support (2016-07-23)

### New

- Now added Typescript support.
- Some other new stuffs.

### Fix

Fixed some babel problems.
```

### Site name

The value of `h1` heading will be used as website name:

```md
# My Website
```

### Changelog Title

Changelog title is an `h2` heading which consists of two parts, `title` and `date` and `date` is totally optional.

```md
## changelog title (date)
```

Sometime you just want to use semantic version as the changelog title:

```md
## 1.3.0 (2015-02-43)
```

### Change Type

Change type is an `h3` heading which describes the type of the change, eg: `Fix`. And it shows up like:

<img src="https://i.loli.net/2017/07/27/59797da5a89df.png" alt="change type" width="60">

By default we have pre-defined colors for specific types which include: `Fix` `Breaking` `New`, other types will get a random color.

You can also set color for custom change type:

```js
new LogLive({
  colors: {
    'Bug fixes': '#342343'
  }
})
```

## Front Matters

### website

You changelog is born for your product, so adding a link to your actual product is necessary:

```md
---
website: http://my-fantastic-app.com
---
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D


## Author

**loglive** © [egoist](https://github.com/egoist), Released under the [MIT](./LICENSE) License.<br>
Authored and maintained by egoist with help from contributors ([list](https://github.com/egoist/loglive/contributors)).

> [egoist.moe](https://egoist.moe) · GitHub [@egoist](https://github.com/egoist) · Twitter [@_egoistlily](https://twitter.com/_egoistlily)

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