badge-urls
Version:
Helper functions to generate URLs for all badges / shields from shields.io
7 lines (6 loc) • 409 B
JavaScript
// This file was auto-generated. Do not modify it by hand and instead modify the scraper or code generator files.
import { urlWithOptions } from "../../options";
/** Label for npm (tag) (/npm/v/:packageName/:tag) */
export const label = `npm (tag)`;
/** URL for npm (tag) (/npm/v/:packageName/:tag) */
export const url = (packagename, tag, options) => urlWithOptions(`/npm/v/${packagename}/${tag}`, options);