open-index/open-npm huggingface dataset:
npm package: @kivixeletric/that-is
Description: A JavaScript library that checks whether the value is of a specific type
Author: KivixEletric
Latest version: 1.0.5

<h1 align="center">That is</h1>

<div align="center">
    <a href='./LICENSE' title='MIT License'><img src='https://img.shields.io/badge/license-MIT-purple.svg?style=for-the-badge'></a>
    <img src='https://img.shields.io/badge/maintenance-as--is-yellow.svg?style=for-the-badge'>
</div>

</br>

> `That-is` is a utility javascript library for type checking, the purpose of the project is to help with flexibility and code optimization.

# > Installation

You can use the library using a [latest version](https://github.com/KivixEletric/That-is/releases) on github or via [npm](https://www.npmjs.com) (the recommended way):
  
```
npm install @kivixeletric/that-is
```

# > How to use

To use the library in your project is very simple, see the example below:

```js
import is from '@kivixeletric/that-is'

// Number Type
is.number('0') // will return a False
is.number(0)   // will return a True

// String Type
is.string('boo') // will return a True
is.string(true)  // will return a False
```

But if you want to do multiple checks of the same type, see the example below:

```js
is.number(1, '2')    // False
is.number(1, 2)      // True
is.number(1, '2', 3) // False
is.number(1, 2, 3)   // True
```

But some functions will not have multiple values, for example `is.divisible` and `is.equal`

# > Type List

### ~ Logical Types
* `type` or `a` - (type, ...values) -> Checks if value is a selected type

* `defined` or `def` - (...values) -> Checks if value is defined (is also applied to Object types)

* `typeEquals` - (value1, value2) -> Checks if typeof value is equals a other typeof value

* `equals` - (value1, value2) -> Checks if value is equals a other value

### ~ Numeric Types
* `decimal` - (...values) -> Checks if value is decimal type

* `bigint` - (...values) -> Checks if value is bigint type

* `divisible` - (value, number) -> Checks if value is divisible with another number

* `infinite` - (...values) -> Checks if value is a infinite type

### ~ Object Types
* `element` or `elem` or `node` - (...values) -> Checks if value is node element type

* `object` or `obj` - (...values) -> Checks if value is object type

* `array` or `arr` - (...values) -> Checks if value is array type

### ~ Natural Types
* `number`, `num` or `int` - (...values) -> Checks if value is number type

* `string` or `str` - (...values) -> Checks if value is string type

* `boolean` or `bool` - (...values) -> Checks if value is boolean type

* `function` or `fn` - (...values) -> Checks if value is function type

* `symbol` - (...values) -> Checks if value is symbol type

### ~ Special Types
* `regexp` - (...values) -> Checks if value is RegExp type

# > License

- This project is licensed under [MIT License](./LICENSE)
npm package: @kivo-sh/sdk
Description: Official Kivo SDK
Latest version: 0.0.2

# @kivo-sh/sdk

The official SDK for [Kivo](https://kivo.sh).

## Install

```bash
npm install @kivo-sh/sdk
```

## Usage

```typescript
import { Kivo } from "@kivo-sh/sdk";

const kivo = new Kivo({
  secretKey: process.env.KIVO_SECRET_KEY,
});

// verify a key
const result = await kivo.keys.verify({ key: "kivo_live_xxx" });

if (result.success && result.data.valid) {
  // good to go
}

// create a key
const created = await kivo.keys.create({
  name: "My API Key",
});

if (created.success) {
  console.log(created.data.key); // save this, it's only shown once
}
```

## Docs

Full documentation at [kivo.sh/docs](https://kivo.sh/docs).