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

get-badges

v0.1.2

Published

> INFO: This package is deprecated please use [suf-cli](https://www.npmjs.com/package/ts-doc-gen) instead.

Downloads

17

Readme

get-badges

INFO: This package is deprecated please use suf-cli instead.

npmV min install githubLastCommit badge=https://img.shields.io/badge/custom-Badge-brightgreen

Usage Example

run get-badges, for the BADGE param pick a key of Badges, for the LINK param pick a key of Links.

the badges above have been generated with this config:

{
  "name": "package.name",
  "github": "TheRealSyler",
  "repo": "package.name",
  "out": "README.md",
  "vscode": "",
  "badges": [
    "npmV npm",
    "min bundle",
    "install package",
    "githubLastCommit github",
    "badge=https://img.shields.io/badge/custom-Badge-brightgreen link=https://example.com"
  ]
}

Docs

types

Config
interface Config {
  name: string;
  github: string;
  vscode: string;
  repo: string;
  out: string;
  badges: string[];
  [key: string]: string | string[] | undefined;
}
Badges
interface Badges {
  /**
   * circleCi build.
   */
  circleci: '/circleci/build/github/<GITHUB>/<REPO>';
  /**
   * Vscode Extension Version.
   */
  vscV: '/visual-studio-marketplace/v/<VSCODE>';
  /**
   * Vscode Extension downloads.
   */
  vscD: '/visual-studio-marketplace/d/<VSCODE>';
  /**
   * Vscode Extension installs.
   */
  vscI: '/visual-studio-marketplace/i/<VSCODE>';
  /**
   * Vscode Extension ratings.
   */
  vscR: '/visual-studio-marketplace/r/<VSCODE>';
  /**
   * Bundlephobia Min.
   */
  min: '/bundlephobia/min/<NAME>';
  /**
   * Bundlephobia Minzip.
   */
  minzip: '/bundlephobia/minzip/<NAME>';
  /**
   * Packagephobia Install.
   */
  install: '/packagephobia/install/<NAME>';
  /**
   * Packagephobia Publish.
   */
  publish: '/packagephobia/publish/<NAME>';
  /**
   * Npm Version.
   */
  npmV: '/npm/v/<NAME>';
  /**
   * Npm Weekly Downloads.
   */
  npmDW: '/npm/dw/<NAME>';
  /**
   * Npm Monthly Downloads.
   */
  npmDM: '/npm/dm/<NAME>';
  /**
   * Npm Yearly Downloads.
   */
  npmDY: '/npm/dy/<NAME>';
  /**
   * Npm Total Downloads.
   */
  npmDT: '/npm/dt/<NAME>';
  /**
   * Npm Types.
   */
  npmTypes: '/npm/types/<NAME>';
  /**
   * Npm License.
   */
  npmLicense: '/npm/license/<NAME>';
  /**
   * Npm Node.
   */
  npmNode: '/npm/node/<NAME>';
  /**
   * Npm Dependents.
   */
  npmDep: '/npm/dependents/<NAME>';
  /**
   * GitHub Followers.
   */
  githubFollowers: '/github/followers/<GITHUB>';
  /**
   * GitHub Forks.
   */
  githubForks: '/github/forks/<GITHUB>/<REPO>';
  /**
   * GitHub Starts.
   */
  githubStars: '/github/stars/<GITHUB>/<REPO>';
  /**
   * GitHub Issues.
   */
  githubIssues: '/github/issues/<GITHUB>/<REPO>';
  /**
   * GitHub Last Commit.
   */
  githubLastCommit: '/github/last-commit/<GITHUB>/<REPO>';
  /**
   * Custom, usage example: badge=https://img.shields.io/badge/custom%2C-Badge-brightgreen.
   */
  badge: '<CUSTOM>';
}
Links
interface Links {
  /**
   * Npm package.
   */
  npm: 'https://www.npmjs.com/package/<NAME>';
  /**
   * Github Repo.
   */
  github: 'https://github.com/<GITHUB>/<REPO>';
  /**
   * circleCi Repo Pipelines.
   */
  circleci: 'https://app.circleci.com/github/<GITHUB>/<REPO>/pipelines';
  /**
   * Visual Studio marketplace.
   */
  vscode: 'https://marketplace.visualstudio.com/items?itemName=<VSCODE>';
  /**
   * Bundlephobia Link.
   */
  bundle: 'https://bundlephobia.com/result?p=<NAME>';
  /**
   * Packagephobia Link.
   */
  package: 'https://packagephobia.now.sh/result?p=<NAME>';
  /**
   * Custom, usage example: link=https://example.com.
   */
  link: '<CUSTOM>';
}

Generated With ts-doc-gen