From 3164051d65de77e1c768049ab75d5bd6af91293f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lenon?= Date: Tue, 29 Aug 2023 10:00:09 +0100 Subject: [PATCH] feat(is): add platform verifier --- docs/the-basics/helpers.mdx | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docs/the-basics/helpers.mdx b/docs/the-basics/helpers.mdx index 3324ba8b..c3e53634 100644 --- a/docs/the-basics/helpers.mdx +++ b/docs/the-basics/helpers.mdx @@ -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: