# gatsby-plugin-superlink

> Dynamic switching between Gatsby Link and normal hrefs based on the url

Latest version **1.0.1** (published 2020-02-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install gatsby-plugin-superlink
pnpm add gatsby-plugin-superlink
yarn add gatsby-plugin-superlink
bun add gatsby-plugin-superlink
```

## 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.1 |
| Published | 2020-02-13 |
| First published | 2019-12-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 0 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | hello@pierre.io |
| Maintainers | pierrenel |
| Keywords | gatsby, gatsby-plugin, link, links |

## Links

- npm: https://www.npmjs.com/package/gatsby-plugin-superlink
- Repository: https://github.com/pierrenel/gatsby-superlink
- Homepage: https://github.com/pierrenel/gatsby-superlink/tree/master/packages/gatsby-superlink#readme
- Issues: https://github.com/pierrenel/gatsby-superlink/issues
- npm.io page: https://npm.io/package/gatsby-plugin-superlink

## Recent versions

- 1.0.1 (latest) — 2020-02-13
- 1.0.0 — 2019-12-15

## README

# gatsby-superlink

Wraps `gatsby-link` and `a href` and switches between then based on the url in the `to` prop.

## Install

`npm install --save gatsby-plugin-superlink`

## How to use

```javascript
// in your component
import Superlink from 'gatsby-plugin-superlink';

// uses gatsby link, by magic
<p><Superlink to='/about-us'>foo</Superlink></p>

// uses a href
<p><Superlink to='https://pierre.io'>bar</Superlink></p>
```

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