npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hexo-safe-transfer

v0.0.1

Published

A hexo plugin to add safe-transfer page.

Downloads

6

Readme

用途 Use

添加安全中转页面,方便进行第三方页面跳转。起到防止降低 SEO 等作用。

Add a safe transfer page to facilitate third-party page jumps. It plays a role in preventing the reduction of SEO.

安装 Install

npm install hexo-safe-transfer --save

使用 Config

在 hexo 根目录的 _config.yml 文件中添加配置:

Add the configuration to the _config.yml file in the hexo root directory

safeTransfer:
  enable: true
  field: 'site'
  excludeRel: ['prev', 'next', 'category', 'tag']
  proxyUrl: 'https://safe-trans.natro92.fun'
  exclude:
    - 'localhost:4000'
    - 'natro92.fun'
  • enable:是否启用插件,默认为 true
  • field:指定需要添加检测属性的位置,可选值为 site (全站)或 post(仅 post 页面,推荐这个),默认为 site
  • excludeRel: 根据 rel 来排除翻页等功能按键。
  • proxyUrl: 使用跳转页,建议使用其他域名挂载即可。
  • exclude:排除的域名列表,不添加第三方跳转。
  • enable: whether to enable the plugin, default is true.
  • field: specify the location where you want to add the detection attribute, the optional value is site (site-wide) or post (post page only, recommended), default is site.
  • excludeRel: according to rel to exclude page flip and other functions.
  • proxyUrl: use jump page, suggest to use another domain name to mount.
  • exclude: list of excluded domains, do not add third-party jump.

TODO

因为是后端渲染,所以就没法对评论中的链接进行检测。

Because it is back-end rendering, there is no way to detect links in comments.