# @wwu-restek/vue-update-title

> vue-router navigation guard, updates page/tab titles based on meta data in router

Latest version **1.0.0** (published 2018-08-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install @wwu-restek/vue-update-title
pnpm add @wwu-restek/vue-update-title
yarn add @wwu-restek/vue-update-title
bun add @wwu-restek/vue-update-title
```

## 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.0 |
| Published | 2018-08-22 |
| First published | 2018-08-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tristan Smith |
| Maintainers | covinga, tristan-smith, wwubrent, wwurestek |
| Keywords | vue, vue-router, navigation, guard |

## Links

- npm: https://www.npmjs.com/package/@wwu-restek/vue-update-title
- npm.io page: https://npm.io/package/@wwu-restek/vue-update-title

## Alternatives

- [express-promise-router](https://npm.io/package/express-promise-router.md) — 736.1K weekly downloads
- [next-usequerystate](https://npm.io/package/next-usequerystate.md) — 29.8K weekly downloads
- [@bitkyc08/opencodex](https://npm.io/package/@bitkyc08/opencodex.md) — 4.6K weekly downloads
- [lynkr](https://npm.io/package/lynkr.md) — 575 weekly downloads
- [baremetal.js](https://npm.io/package/baremetal.js.md) — 42 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-08-22

## README

# ResTek's Vue Update Title Module

This module exposes a vue-router Navigation Guard that updates the page/tab title dynamically.

### Installation
```
npm i @wwu-restek/vue-update-title
```

### Example:
```js
// in vue router.js
import updateTitle from '@wwu-restek/vue-update-title';

const router = {
  routes: [
    {
      path: '/about',
      component: About,
      meta: { title: 'About' }
    }
  ]
};

const updateTitleConfig = { appTitle: 'Example App' }
router.beforeEach(updateTitle(updateTitleConfig));

export default router;

// This will display the about page with the tab title: `About | Example App`
```

## More Documentation
More complete documentation is available by generating JSDocs for the module.

---
_Source: https://npm.io/package/@wwu-restek/vue-update-title · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
