From e30df2ba21352106fb58904e7e9807e92f507f57 Mon Sep 17 00:00:00 2001 From: Tse Kit Yam Date: Wed, 13 Oct 2021 00:35:08 +0800 Subject: [PATCH] Add npm version badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c45b2ee..52ca885 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # alphanum-compare +[![npm version](https://badge.fury.io/js/alphanum-compare.svg)](https://badge.fury.io/js/alphanum-compare) [![Node.js CI](https://github.com/tsekityam/alphanum-compare/actions/workflows/test.yml/badge.svg)](https://github.com/tsekityam/alphanum-compare/actions/workflows/test.yml) [![codecov](https://codecov.io/gh/tsekityam/alphanum-compare/branch/main/graph/badge.svg?token=DHFqZcVnZR)](https://codecov.io/gh/tsekityam/alphanum-compare) [![Known Vulnerabilities](https://snyk.io/test/github/tsekityam/alphanum-compare/badge.svg)](https://snyk.io/test/github/tsekityam/alphanum-compare) @@ -28,7 +29,6 @@ console.log(["item20", "item19", "item1", "item10", "item2"].sort(compareFn)); [CodeSandbox](https://codesandbox.io/s/alphanum-compare-demo-bfhln) - ### `compareFn(a: string, b: string, opts?: { sign?: boolean }): number` It returns a negative value if first argument is less than second argument, zero if they're equal and a positive value otherwise.