open-index/open-npm huggingface dataset:
npm package: @g-components/lit-button
Description: A customizable button web component built with Lit
Author: gaddiel.gomez
Latest version: 0.1.0

# @g-components/lit-button

Componente Lit: button

## Instalación

```bash
npm install @g-components/lit-button
```

## Uso

```javascript
import '@g-components/lit-button';
```

```html
<lit-button text="Hello World"></lit-button>
```
npm package: @g-gts/ui
Description: GTS UI component library
Author: Mamatov Umar
Latest version: 1.5.22

# Easybooking UI Library

## Overview
This is a Vue-based UI component library for the GTS projects, providing reusable and customizable components.

## Prerequisites
- Node.js (v20 or later)
- npm (v8 or later)
- Vue 3

## Local Development Setup

### 1. Clone the Repository
```bash
git clone https://github.com/MamatovUmar/gts-ui.git
cd gts-ui
```

### 2. Install Dependencies
```bash
npm install
```

### 3. Run Storybook
To view and develop components interactively:
```bash
npm run storybook
```

### 4. Build the Library
To build the library for production:
```bash
npm run build
```

## Installation in Other Projects

### 1. Install via npm
```bash
npm install gts-ui
```

### 2. Import Components
```typescript
// In your Vue component
import { EasyIcon } from 'gts-ui'
```

### 3. Import Styles
```typescript
// In your main.ts or main.js
import 'gts-ui/styles'
```

### 4. Global Import
```typescript
// In your main.ts or main.js
import gts from 'gts-ui'

const app = createApp(App)

app.use(gts)
```

## Utils

### catcher
function for handling asynchronous errors. Wraps an asynchronous function and handles potential errors.

```typescript
import { catcher } from 'gts-ui'

// example usage
const safeFetch = catcher(async () => {
  const response = await fetch('https://api.example.com/data')
  return response.json()
})

const fetchInfo = catcher(async () => {
  const response = await fetch('https://api.example.com/data')
  return response.json()
}, (error) => {
  console.error('Произошла ошибка:', error)
})
```

### debounce
Function for preventing frequent function calls. Useful for handling input events or scrolling.

```typescript
import { debounce } from 'gts-ui'

// example usage
const handleSearch = debounce((searchTerm: string) => {
  // search
  console.log('Search:', searchTerm)
}, 300) // Delay of 300ms
```

### padStart
Function for padding a string or number with zeros to the left to a specified length.

```typescript
import { padStart } from 'gts-ui'

// Example usage
const formattedNumber = padStart(5, 2) // "05"
const formattedHour = padStart(9, 2)   // "09"
```

## License
Distributed under the MIT License. See `LICENSE` for more information.

## Contact
Mamatov Umar - mamatov.umar@mail.ru

Project Link: [https://mamatovumar.github.io/gts-ui](https://mamatovumar.github.io/gts-ui)
# gts-ui
npm package: @g-lib/sizeof
Description: A utility function that calculates the size or the length of various types.
Author: Gabriel
Latest version: 1.0.3

![GitHub Release](https://img.shields.io/github/v/release/9a8ri3L/sizeof)
![NPM License](https://img.shields.io/npm/l/%40g-lib%2Fsizeof)
![GitHub forks](https://img.shields.io/github/forks/9a8ri3L/sizeof?style=plastix&color=yellow)
![GitHub stars](https://img.shields.io/github/stars/9a8ri3L/sizeof?style=flat-square)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/1adbc875e33c46d1a07ee1d2dc8abdf0)](https://app.codacy.com/gh/9a8ri3L/sizeof/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/9a8ri3L/sizeof/total)

![GitHub commits since latest release](https://img.shields.io/github/commits-since/9a8ri3L/sizeof/latest)
![GitHub contributors](https://img.shields.io/github/contributors-anon/9a8ri3L/sizeof)
![npm bundle size (scoped)](https://img.shields.io/bundlephobia/minzip/%40g-lib/sizeof)

# sizeof

### A utility function that calculates the size or the length of various types.

#### install

```
npm i @g-lib/sizeof
```

```
yarn add @g-lib/sizeof
```

```
pnpm add @g-lib/sizeof
```

### Usage:

```ts
import sizeof from "@g-lib/sizeof";

// or

const sizeof = require("@g-lib/sizeof");

console.log(sizeof({ foo: "bar", bar: "baz" })); // 2
console.log(sizeof([1, 2, 3])); // 3
console.log(sizeof(new Map().set("foo", true))); // 1
console.log(sizeof(new Set().add("foo").add("bar"))); // 2
console.log(sizeof(2024)); // 4
console.log(sizeof(100e15)); // 18
console.log(sizeof(Symbol("foo"))); // 3
console.log(
  sizeof(function foo(a: any, b: any) {
    return a + b;
  })
); // 0
console.log(
  sizeof(function bar() {
    return "bar";
  })
); // 3
console.log(
  sizeof(
    new (function Foo(this: any) {
      this.name = "Foo";
      this.age = 30;
    } as any)()
  )
); // 2
console.log(
  sizeof(
    new (class Foo extends Map<any, any> {
      constructor(public name: string) {
        super();
      }
    })("")
  )
); // 0
console.log(
  sizeof(
    new (class Bar {
      constructor(public name: string) {}
    })("")
  )
); // 1
```

#### Contributing is always welcomed.

### License [MIT](https://choosealicense.com/licenses/mit/)
npm package: @g-lib/unique
Description: unique is a function that remove any duplicates from an array.
Author: Gabriel
Latest version: 0.0.1

![GitHub Release](https://img.shields.io/github/v/release/9a8ri3L/unique)
![NPM License](https://img.shields.io/npm/l/%40g-lib%2Funique)
![GitHub forks](https://img.shields.io/github/forks/9a8ri3L/unique?style=plastix&color=yellow)
![GitHub stars](https://img.shields.io/github/stars/9a8ri3L/unique?style=flat-square)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/1adbc875e33c46d1a07ee1d2dc8abdf0)](https://app.codacy.com/gh/9a8ri3L/unique/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
![NPM Downloads](https://img.shields.io/npm/dt/%40g-lib%2Funique)

![GitHub commits since latest release](https://img.shields.io/github/commits-since/9a8ri3L/unique/latest)
![GitHub contributors](https://img.shields.io/github/contributors-anon/9a8ri3L/unique)
![npm bundle size (scoped)](https://img.shields.io/bundlephobia/minzip/%40g-lib/unique)

# unique

### Function that removes any duplicated elements in the array.

#### install

```
npm i @g-lib/unique
```

```
yarn add @g-lib/unique
```

```
pnpm add @g-lib/unique
```

#### Usage:

```ts
import unique from '@g-lib/unique';

// or

const unique = require('@g-lib/unique');

console.log(
  unique([
    { a: { key: 'a' }, b: 'b' },
    { a: { key: 'a' }, b: 'b' },
  ]),
); // [{a: {key: "a"}, b: "b"}]
console.log(
  unique([
    [1, 2, true, undefined],
    [1, 2, true, undefined],
  ]),
); // [[1,2,true, undefined ]]

// ...
```

#### Function can be used with array of multiple types

#### @see [Tests](https://github.com/9a8ri3L/unique/tree/main/__tests__)

#### Contributing is always welcomed.

#### @License [MIT](https://choosealicense.com/licenses/mit/)