Gathering detailed insights and metrics for vue-routing-anchor-parser
Gathering detailed insights and metrics for vue-routing-anchor-parser
Gathering detailed insights and metrics for vue-routing-anchor-parser
Gathering detailed insights and metrics for vue-routing-anchor-parser
A Vue directive that parses child elements for internally linking anchor tags and binds their click events to use Vue Router's push().
npm install vue-routing-anchor-parser
Typescript
Module System
Node Version
NPM Version
JavaScript (68.48%)
CoffeeScript (31.52%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3 Stars
192 Commits
2 Forks
2 Watchers
5 Branches
9 Contributors
Updated on May 15, 2025
Latest Version
1.15.1
Package Id
vue-routing-anchor-parser@1.15.1
Unpacked Size
761.33 kB
Size
442.38 kB
File Count
42
NPM Version
8.11.0
Node Version
16.15.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
3
A Vue directive that parses child elements for internally linking anchor tags and binds their click events to use Vue Router's push().
yarn add vue-routing-anchor-parser
or npm install --save vue-routing-anchor-parser
In a your bootstrapping JS:
1parseAnchors = require('vue-routing-anchor-parser') 2directive.settings({ 3 addBlankToExternal: false, 4 internalUrls: [ 5 /^https?:\/\/localhost:\d+/ 6 /^https?:\/\/([\w\-]+\.)?netlify\.com/ 7 /^https?:\/\/([\w\-]+\.)?bukwild\.com/ 8 ] 9 internalHosts: [ 10 'localhost', 11 'example.com', 12 ] 13}) 14Vue.directive('parse-anchors', parseAnchors)
In nuxt.config.js
:
1 modules: [ 2 'vue-routing-anchor-parser/nuxt/module', 3 ], 4 anchorParser: { 5 addBlankToExternal: true, 6 internalUrls: [ 7 /^https?:\/\/localhost:\d+/, 8 /^https?:\/\/([\w\-]+\.)?netlify\.com/, 9 /^https?:\/\/(www\.)?bukwild\.com/, 10 ], 11 internalHosts: [ 12 'localhost', 13 'bukwild.com', 14 ], 15 externalPaths: [ 16 /^\/react-landing-page/, 17 ], 18 sameWindowUrls: [ 19 /^https?:\/\/(shop\.)?bukwild\.com/, 20 ], 21 disableSmartLinkRegistration: false, 22 }
addBlankToExternal
: Set to true to add target='_blank'
to external linksinternalUrls
: Array of regexes that, when found in href
attributes, get treated as internal links.internalHosts
: Array of host names that, when found in href
attributes, get treated as internal links. These are checked after internalUrls
.externalPaths
: Array of regexes that, when found in href
attributes, get treated as external links. Useful for sections of your website that are not part of this Vue/Nuxt app.sameWindowUrls
: Array of regexes that are checked when a URL is not internal. If there is a match, the URL opens in the same window rather opening a new window.disableSmartLinkRegistration
: Set to true to prevent the auto registration of smart-link
v-parse-anchors
directiveAdd v-parse-anchors
wherever you want to parse child anchors for internal links and route clicks through Vue Router. href
s that begin with a slash, like <a href='/path/to/something'>
are treated as internal automatically. If an internal route can't be resolved by Vue Router, it falls back to a full page refresh (though never opens in a new window.)
smart-link
componentThe smart-link
component conditionally renders a nuxt-link
if an internal link or an a
tag if not.
1<smart-link to='https://www.bukwild.com'>Bukwild</smart-link>
bind
, meaning if the contents for the element change later, new a
tags won't be processed.No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
6 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
47 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More