open-index/open-npm huggingface dataset:
npm package: @onehook/boolean
Description: React hook for boolean state.
Author: Simon Boisset
Latest version: 0.1.6
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# One hook : useBoolean

React hook for boolean state.

# Instalation

```bash
yarn add @onehook/boolean
```

# Usage

```ts
import useBoolean from '@onehook/boolean';

const [value, setTrue, setFalse, toggle, setValue] = useBoolean();
```
npm package: @onehook/count
Description: React hook for count state. Increment and decrement methods.
Author: Simon Boisset
Latest version: 0.1.6
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# One hook : useCount

React hook for count state. Increment and decrement methods.

# Instalation

```bash
yarn add @onehook/count
```

# Usage

```ts
import useCount from '@onehook/count';

const { count, increment, decrement, reset, setCount, canIncrement, canDecrement } = useCount({
  initialValue: 2,
  max: 10,
  min: 0,
  step: 2,
});
```
npm package: @onehook/debounce
Description: React hook for debounced state.
Author: Simon Boisset
Latest version: 0.1.6
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# One hook : useDebounce

React hook for debounced state.

# Instalation

```bash
yarn add @onehook/debounce
```

# Usage

```ts
import useDebounce from '@onehook/debounce';

const [value, setValue] = useDebounce('initial state', 500);
```
npm package: @onehook/drag-and-drop
Description: React hook for IntersectionObserver listner.
Author: Simon Boisset
Latest version: 0.1.6

# One hook : useIntersectionObserver

React hook for IntersectionObserver listner.

# Instalation

```bash
yarn add @onehook/intersection-observer
```

# Usage

```ts
import useIntersectionObserver from '@onehook/intersection-observer';

useIntersectionObserver();
```
npm package: @onehook/intersection-observer
Description: React hook for IntersectionObserver listner.
Author: Simon Boisset
Latest version: 0.1.6
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# One hook : useIntersectionObserver

React hook for IntersectionObserver listner.

# Instalation

```bash
yarn add @onehook/intersection-observer
```

# Usage

```ts
import useIntersectionObserver from '@onehook/intersection-observer';

useIntersectionObserver();
```
npm package: @onehook/interval
Description: React hook for interval state.
Author: Simon Boisset
Latest version: 0.1.6

# One hook : useInterval

React hook for interval state.

# Instalation

```bash
yarn add @onehook/interval
```

# Usage

```ts
import useInterval from '@onehook/interval';

useInterval(callback, 500);
// desable intervall
useInterval(callback, null);
```
npm package: @onehook/list
Description: React hook for list state.
Author: Simon Boisset
Latest version: 0.1.6
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# One hook : useList

React hook for list state.

# Instalation

```bash
yarn add @onehook/list
```

# Usage

```ts
import useList from '@onehook/list';

const [data, { entities, set, remove, setMany, initialize, update, get }] = useList<MyData>(initalValue);
```

## Methods

### get

Get entity value by id :

```ts
const item = get('my-id');
```

### set

Upsert entity value :

```ts
const user = {
  id: 'my-id',
  name: 'John',
  age: 26,
};
set(user);
```

### remove

Delete entity by id :

```ts
remove('my-id');
```

### setMany

Upsert multiple entities values :

```ts
const user1 = {
  id: 'my-id',
  name: 'John',
  age: 26,
};
const user2 = {
  id: 'id-2',
  name: 'Jane',
  age: 32,
};
setMany([user1, user2]);
```

### initialize

Set multiple entities values from an empty array :

```ts
const user1 = {
  id: 'my-id',
  name: 'John',
  age: 26,
};
const user2 = {
  id: 'id-2',
  name: 'Jane',
  age: 32,
};
initialize([user1, user2]);
```

### update

Update partial entity value. Only defined props will be updated

```ts
const user = {
  id: 'my-id',
  age: 29,
};
update(user);
```
npm package: @onehook/storage
Description: React hook for persistent state with localStorage.
Author: Simon Boisset
Latest version: 0.1.6
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# One hook : useStorage

React hook for persistent state with localStorage.

# Instalation

```bash
yarn add @onehook/storage
```

# Usage

```ts
import useStorage from '@onehook/storage';

const [value, setValue] = useStorage('key');
```
npm package: @onehook/timeout
Description: React hook for timeout trigger.
Author: Simon Boisset
Latest version: 0.1.6
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# One hook : useTimeout

React hook for timeout trigger.

# Instalation

```bash
yarn add @onehook/timeout
```

# Usage

```ts
import useTimeout from '@onehook/timeout';

const trigger = useTimeout();

const handleClick = () => {
  trigger(() => {
    console.log('Timeout');
  }, 500);
};
```
npm package: @onehook/updated-ref
Description: React hook for count state. Increment and decrement methods.
Author: Simon Boisset
Latest version: 0.1.6
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# One hook : useUpdatedRef

React hook for count state. Increment and decrement methods.

# Instalation

```bash
yarn add @onehook/count
```

# Usage

```ts
import useCount from '@onehook/count';

const { count, increment, decrement, reset, setCount, canIncrement, canDecrement } = useCount({
  initialValue: 2,
  max: 10,
  min: 0,
  step: 2,
});
```
npm package: @onehop/js
Description: Hop's JavaScript library. Requires Node.js 12+
Author: Hop
Latest version: 1.47.0

# @onehop/js

Hop's JavaScript library. Requires Node.js 12+

## Usage

Create a [project token](https://docs.hop.io/reference/project-tokens) or personal access token.

```ts
import {Hop} from '@onehop/js';

const myToken = 'ptk_xxx';
const hop = new Hop(myToken);

// Example: Creating a project secret
hop.projects.secrets.create(
	'RANDOM_NUMBER',
	Math.floor(Math.random() * 100).toString(),
);
```
npm package: @onehop/json-methods
Description: A utility for adding methods to any JSON object. For example, deserializing a user object from your API and adding a `.isAdult()`. Whilst this library works great for validation, use cases extend far beyond that. It was built for `@onehop/js` to enable re
Author: Hop Developers
Latest version: 1.2.0

# `json-methods`

A utility for adding methods to any JSON object. For example, deserializing a user object from your API and adding a `.isAdult()`. Whilst this library works great for validation, use cases extend far beyond that. It was built for `@onehop/js` to enable regular objects to have utility methods that are context aware (like fetching a deployment's containers in Hop).

## Installation

```bash
# With yarn
yarn add @onehop/json-methods

# With npm
npm install --save @onehop/json-methods
```

## Basic Example

For something a little bit more in depth, but still simple, check out [/examples/basic.ts](/examples/basic.ts)

```ts
import {create} from '@onehop/json-methods';

interface User {
	id: string;
	email: string;
	age: number;
}

const Users = create<User>().methods({
	// Methods must be created with method function syntax,
	// rather than property arrow functions (so that `this` can be bound)
	isAdult() {
		return this.age >= 18;
	},
});

// json is the JSON object that we want to add methods to
const json = await getUserFromAPI();
const user = Users.from(json);

// Or, if you have a JSON string, we can parse it for you
const user = Users.parse(json);

// Safely access properties:
console.log(user.email);

// And call our methods
console.log('Can watch the movie?:', user.isAdult());
```

## Validation / Schemas

`json-methods` supports third-party schemas out of the box. You can write your own, or use things like Zod, Yup or Joi. The precondition is that the schema object itself has a method with the signature `parse(data: unknown): T` Here's a basic example using Zod:

```ts
import {create} from '@onehop/json-methods';
import {z} from 'zod';

// This schema has a .parse method internally, so it will work
// with json-methods without any modification
const schema = z.object({
	age: z.number().min(0),
});

const Users = create(schema).methods({
	isAdult() {
		return this.age >= 18;
	},
});

// During this phase, the schema will be used to validate the passed object.
// If you do not pass a schema, then the raw data will be used, but you
// could run into runtime errors if you try to access properties that don't exist!
// For this reason, it's recommended to always pass a schema if you can
const user = Users.from(await getUserFromAPI());

console.log('Can watch the movie?:', user.isAdult());
```

## Advanced TypeScript

For more advanced use cases, there's a type exported called `Infer` that will allow you to get the full type of your object with the methods added

```ts
import {create, Infer} from '@onehop/json-methods';

const Users = create<{age: number}>().methods({
	isAdult() {
		return this.age >= 18;
	},
});

// UserWithMethods is {age: number} & {isAdult(): boolean}
type UserWithMethods = Infer<typeof Users>;
```
npm package: @oneid-xyz/app-ui-react
Description: ## Requirements
Latest version: 1.0.1

# SDK UI for Apps

## Requirements

- [Tailwind CSS](https://tailwindcss.com/docs/guides/nextjs)

## Installation
Install the package using one of the following commands:

- Using Yarn:
  ```bash
  yarn add @oneid-xyz/app-ui-react
  ```

- Using npm:
  ```bash
  npm install @oneid-xyz/app-ui-react
  ```

- Using pnpm:
  ```bash
  pnpm i @oneid-xyz/app-ui-react
  ```

## Setup

### Configure Tailwind CSS

In your `tailwind.config.js`, add the following configuration:

```javascript
const { classTailwind } = require('@oneid-xyz/app-ui-react');

module.exports = {
    content: [
        // Other content paths...
        './node_modules/@oneid-xyz/app-ui-react/dist/**/*.js',
    ],

    theme: {
        extend: {
            colors: {
                ...classTailwind,
            },
        },
    },
};
```

### Import SDK Styles
Import the SDK styles in your layout page:

```bash
import '@oneid-xyz/app-ui-react/styles.css';
```

## Usage
To use the SDK in your component, you can import the necessary components as follows:

```bash
import { Miniapp } from '@oneid-xyz/app-ui-react';
import Script from 'next/script';

export default function Home() {
  const address = ''; // Replace with your EVM address

  return (
    <div>
      <Miniapp address={address}/>
    </div>
  );
}
```

## Props
address: The EVM address to be used with the app.

## More documentation 
More documentation and code examples can be found at https://docs.oneid.xyz/developers-guide/oneid-sdk.

## Support
Should you encounter any technical issues during integration, please contact **support@oneid.xyz** team via the Customer Experience Portal which also includes support documentation.
npm package: @oneii3/ei8ht
Description: a new expressive state management library
Author: ja.superior
Latest version: 0.0.1

# Ei8ht

> Catch phrase

### Table Of Contents

-   What is Ei8ght
-   Key Features
-   Getting Started
    -   Installation
    -   Config
-   Usage
    -   Defining the Work
    -   Types of Work
    -   Creating a Unit of Work
    -   Utilizing a Unit
    -   Types of Units
    -   Creating UI
-   Api

    -   Domain
        -   Work
        -   Unit
    -   Enums
        -   UnitType
        -   UnitKind
    -

-   Motivation
-   Contributing
npm package: @oneillsun/platzom
Description: traductor de idioma platzom
Author: Antonio Bello
Latest version: 0.1.0

# Platzom

Es un idoma inventado para el [curso de fundamentos de javascript](https://platzi.com/js), [Platzi] (https://platzi.com/)

## Descripción del idioma

- Si la palabra termina en ar, se quitan esos dos caracteres
- Si la palabra comienza con Z, se añade pe al final
- Si la palabra tiene 10 o más letras, se parte a la mitad y separar con un guion
- Si la palabra original es un palindromo (igual de atras para adelante) ninguna regla se toma en cuenta.

## Instalación

```
npm install platzom
```

## Uso

```
import platzom from 'platzom'

platzom('Programar') //Programar
platzom('Zorro') //Zorrope
platzom('Zarpar') //Zarppe
platzom('Abecedario') //abce-dario
platzom('Sometemos') //SoMeTeMoS
```

## Créditos

- [Antonio Bello](https://twitter.com/antoniojbello)

## license

[MIT](https://opensource.org/licenses/MIT)