# @lmsomeco/anchor-fixer

> Fixes anchor links when using vue hash router

Latest version **1.0.4** (published 2023-06-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install @lmsomeco/anchor-fixer
pnpm add @lmsomeco/anchor-fixer
yarn add @lmsomeco/anchor-fixer
bun add @lmsomeco/anchor-fixer
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-06-02 |
| First published | 2023-05-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Niko Peltoniemi |
| Maintainers | nikopeltoniemi |

## Links

- npm: https://www.npmjs.com/package/@lmsomeco/anchor-fixer
- Repository: https://github.com/lmandcreative/lmsomeco-anchor-fixer
- Issues: https://github.com/lmandcreative/lmsomeco-anchor-fixer/issues
- npm.io page: https://npm.io/package/@lmsomeco/anchor-fixer

## Recent versions

- 1.0.4 (latest) — 2023-06-02
- 1.0.3 — 2023-05-24
- 1.0.2 — 2023-05-24
- 1.0.1 — 2023-05-24
- 1.0.0 — 2023-05-24

## README

# Anchor link fixer

Fixes anchor links outside the app when using vue hash router

## Installation

```bash
npm i -s @lmsomeco/anchor-fixer
```

## Example usage

```js
import { createApp } from 'vue'
import { createRouter, createWebHashHistory } from 'vue-router'
import anchorFixer from '@lmsomeco/anchor-fixer'

const router = VueRouter.createRouter({
    history: createWebHashHistory()
    routes: [
        {
            path: '/'
            name: 'home',
            component: {
                template: '<h1>Home</h1>'
            }
        }
    ]
});

const app = createApp(/*App*/)

app.use(router)

app.use(anchorFixer, {router})

```

## Options

| Option | Type | Required |
| :--- | :---: | ---:|
|router|VueRouter| yes|

---
_Source: https://npm.io/package/@lmsomeco/anchor-fixer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
