<commit_before>
# is-semver

 [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Version](https://img.shields.io/npm/v/is-semver.svg)](https://www.npmjs.com/package/is-semver) [![Downloads](https://img.shields.io/npm/dt/is-semver.svg)](https://www.npmjs.com/package/is-semver)

> Check if an input value is a valid semver version or not.

## :cloud: Installation

```sh
$ npm i --save is-semver
```


## :clipboard: Example



```js
const isSemver = require("is-semver");

console.log(isSemver("1.2.3"));
// => true

console.log(isSemver("a.b.c"));
// => false

console.log(isSemver("foo"));
// => false
```

## :memo: Documentation


### `isSemver(input)`
Checks if the input value is a valid semver version.

#### Params<commit_msg>Updated docs<commit_after>
# is-semver

 [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Version](https://img.shields.io/npm/v/is-semver.svg)](https://www.npmjs.com/package/is-semver) [![Downloads](https://img.shields.io/npm/dt/is-semver.svg)](https://www.npmjs.com/package/is-semver)

> Check if an input value is a valid semver version or not.

## :cloud: Installation

```sh
$ npm i --save is-semver
```


## :clipboard: Example



```js
const isSemver = require("is-semver");

console.log(isSemver("1.2.3"));
// => true

console.log(isSemver("a.b.c"));
// => false

console.log(isSemver("foo"));
// => false
```

## :question: Get Help

There are few ways to get help:

 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.
 2. For bug reports and feature requests, open issues. :bug:
 3. For direct and quick help from me, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:


## :memo: Documentation


### `isSemver(input)`
Checks if the input value is a valid semver version.

#### Params
{'fraction_non_alphanumeric': 0.18925459825750243, 'fraction_numerical': 0.004356243949661181, 'mean_word_length': 4.556451612903226, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 10, 'lorem ipsum': 0, 'www.': 5, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5022953', 'n_tokens_mistral': 795, 'n_tokens_neox': 737, 'n_words': 173}