badge-maker
Advanced tools
Comparing version 3.0.1 to 3.1.0
# Changelog | ||
## 3.1.0 | ||
- Add TypeScript definitions | ||
## 3.0.1 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "badge-maker", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "Shields.io badge library", | ||
@@ -12,2 +12,3 @@ "keywords": [ | ||
], | ||
"types": "index.d.ts", | ||
"main": "lib/index.js", | ||
@@ -14,0 +15,0 @@ "repository": { |
@@ -5,2 +5,3 @@ # badge-maker | ||
[![npm license](https://img.shields.io/npm/l/badge-maker.svg)](https://npmjs.org/package/badge-maker) | ||
[![npm type definitions](https://img.shields.io/npm/types/badge-maker)](https://npmjs.org/package/badge-maker) | ||
@@ -24,5 +25,15 @@ ## Installation | ||
With CommonJS in JavaScript, | ||
```js | ||
const { makeBadge, ValidationError } = require('badge-maker') | ||
``` | ||
With ESM or TypeScript, | ||
```ts | ||
import { makeBadge, ValidationError } from 'badge-maker' | ||
``` | ||
```js | ||
const format = { | ||
@@ -29,0 +40,0 @@ label: 'build', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41819
10
792
143