Skip to content

Commit

Permalink
Merge pull request #92 from AthennaIO/develop
Browse files Browse the repository at this point in the history
feat(is): add platform verifier
  • Loading branch information
jlenon7 authored Aug 29, 2023
2 parents 570715d + 3164051 commit 78f2f1a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/the-basics/helpers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2310,6 +2310,37 @@ import { Is } from '@athenna/common'
Is.kindOf('string', 'string') // true
```

#### `Is.Mac()`

Validate if the current OS is a MacOS:

```typescript
import { Is } from '@athenna/common'

Is.Mac() // true
```

#### `Is.Linux()`

Validate if the current OS is a distribution of
Linux:

```typescript
import { Is } from '@athenna/common'

Is.Linux() // true
```

#### `Is.Windows()`

Validate if the current OS is a Windows:

```typescript
import { Is } from '@athenna/common'

Is.Windows() // true
```

#### `Is::Uuid()`

Validate if the value is a valid UUID v4:
Expand Down

0 comments on commit 78f2f1a

Please sign in to comment.