1
mirror of https://github.com/jakejarvis/simple-anchor.git synced 2025-04-25 17:35:21 -04:00

update badges & fix unpkg URL

This commit is contained in:
Jake Jarvis 2021-08-30 19:31:46 -04:00
parent c760d51a4a
commit 98e6abda03
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39

View File

@ -1,6 +1,10 @@
# 🔗 Simple Anchor [![npm](https://img.shields.io/npm/v/simple-anchor?logo=npm)](https://www.npmjs.com/package/simple-anchor)
# 🔗 Simple Anchor
A JavaScript utility for adding deep anchor links ([like these](https://ux.stackexchange.com/q/36304/33248)) to existing page content.
[![CI](https://github.com/jakejarvis/simple-anchor/actions/workflows/ci.yml/badge.svg)](https://github.com/jakejarvis/simple-anchor/actions/workflows/ci.yml)
[![npm](https://img.shields.io/npm/v/simple-anchor?logo=npm)](https://www.npmjs.com/package/simple-anchor)
[![MIT License](https://img.shields.io/github/license/jakejarvis/simple-anchor?color=violet)](LICENSE)
A JavaScript utility for adding deep anchor links ([like these](https://ux.stackexchange.com/q/36304/33248)) to existing page content. Zero dependencies and [only ~1kB gzipped!](https://bundlephobia.com/package/simple-anchor)
## Changes from [AnchorJS](https://github.com/bryanbraun/anchorjs)
@ -14,7 +18,7 @@ Otherwise, the [AnchorJS docs](https://www.bryanbraun.com/anchorjs/) still serve
### Browser
```html
<script src="https://unpkg.com/@jakejarvis/simple-anchor/dist/simple-anchor.min.js"></script>
<script src="https://unpkg.com/simple-anchor/dist/simple-anchor.min.js"></script>
<script>
var anchor = new SimpleAnchor();
anchors.add({