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

gatsby-remark-bitly-links

v1.0.2

Published

This plugin is going to find all the links in your markdown file, convert them to [bitly](https://bitly.com/) links and mofify the underlying markdown files, replacing all the links with the newly created _bitly_ ones.

Downloads

17

Readme

Description

This plugin is going to find all the links in your markdown file, convert them to bitly links and mofify the underlying markdown files, replacing all the links with the newly created bitly ones.

All the links will be available in your bitly dashboard, from where you can see how do they perform.

Dependencies

npm i gatsby-transformer-remark

or

yarn add gatsby-transformer-remark

How to install

npm i gatsby-remark-bitly-links

or

yarn add gatsby-remark-bitly-links

Options

| Name | Required | Default | Description | | ------------- | -------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------- | | accessToken | true | - | Bitly API access token, see the bitly docs | | namedBitlys | false | ["bit.ly", "amzn.to"] | Filter out bitly links which have a different domain | | |

Notes

  • In order to identify the source of the links, this plugin will add a tag when creating the link, as you can see it in the bitly docs. This tag is the first 50 characters of the slug parameter from the frontmatter of the markdown file. This means that you have to have a slug value in your frontmatter, or the tag value is not going be populated.

When do I use this plugin?

If you want to track the performance of your links in markdown files, this plugin is the way to go.

Examples of usage

Include this in your gatsby-config.js file, under the gatsby-transformer-remark plugins section.

{
  resolve: "gatsby-transformer-remark",
  options: {
    plugins: [{
      resolve: "gatsby-remark-bitly-links",
      options: {
        accessToken: BITLY_ACCESS_TOKEN, // see the options sections for how to get the token
        namedBitlys: ["mzl.la"] // optional
      }
    }]
  }
}

How to run tests

Tests are still work in progres...

How to contribute

If you have any questions, please open an issue and we will figure it out!