Skip to content

Commit

Permalink
Add npm version badge
Browse files Browse the repository at this point in the history
  • Loading branch information
tsekityam committed Oct 12, 2021
1 parent 57ce1a2 commit c004230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit c004230

Please sign in to comment.