1.1.0 • Published 3 years ago

technology-shields v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

TechnologyShields

npm build status codecov

TechnologyShields is a simple NPM package for generating shields.io URLs from Simple Icons slugs.

Installation

npm install technology-shields

Usage

ℹ️ Because this package uses simple-icons, we ask that all users read their legal disclaimer before using icons from Simple Icons.

TechnologyShields exports get function with alias Get. It takes 3 arguments:

ParameterTypeRequiredDefaultDescription
namestringYesSimple icons slug. See all slugs.
typeExportType or stringNoExportType.MARKDOWNType of the exported shield, see below
includeURLbooleanNotrueShould image be wrapped in URL to the service. No effect if URL export type is selected

Export Type

If you are using Typescript, you can specify the export type using exported ExportType enum. If you don't want to or you are using Javascript, you can just provide a string. Available export options are:

  • URL - Export raw shield URL.
  • MARKDOWN - Export shield as markdown code.
  • HTML - Export shield as html code.

Simple usage

const technologyShields = require("technology-shields")

console.log(technologyShields.get("typescript", "MARKDOWN"))

Output:

TypeScript

Multiple shields

const technologyShields = require("technology-shields")

console.log(technologyShields.get(["github", "typescript", "codecov", "git", "visualstudiocode", "eslint"], "MARKDOWN"))

Output:

GitHub TypeScript Codecov Git Visual Studio Code ESLint

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago