open-index/open-npm huggingface dataset:
npm package: @jmrl23/redis-store
Description: Redis simplified wrapper
Author: Jomariel Gaitera
Latest version: 2.4.4

# @jmrl23/redis-store

Redis simplified wrapper

## Sample usage

```ts
import redisStore from '@jmrl23/redis-store';

async function main() {
  const store = redisStore({
    url: 'redis://',
    prefix: 'Example',
  });

  await store.set('message', 'Hello, World!');

  const message = await store.get<string>('message');

  console.log(message); // Hello, World!

  await store.del('message');

  await store.disconnect();
}

void main();
```

## Additional Options

| Key    | Description                     | Type    |
| ------ | ------------------------------- | ------- |
| prefix | Prefix for keys                 | string? |
| ttl    | Time to Live, `0` is to disable | number? |
npm package: @jmruthers/pace-core
Description: React component library with Tailwind v4
Author: PACE Team
Latest version: 0.6.12

# @jmruthers/pace-core

React component library with Tailwind v4.

## Installation

```bash
npm install @jmruthers/pace-core
```

## Documentation

See [Documentation](./docs/README.md) for complete setup and usage guides.

## License

MIT License - see [LICENSE](./LICENSE) for details.
npm package: @jms-1/react-validated-model
Description: React Hook for Model Management with Validation
Author: Dr. Jochen Manns
Latest version: 0.1.2

# React Hook für Datenmodelle mit Prüfung

Implementiert für DTO(Data Transfer Object)s - also reine JSON Objekte wie man sie über diverse HTTP/REST/GraphQL erhält.

[TBD]

```typescript
import { clsx } from 'clsx'
import * as React from 'react'

import { useModel } from '.'
import styles from './model.stories.module.scss'

export default { title: 'Modell mit Prüfung' }

export const einzelnesTextFeld = ((): JSX.Element => {
    const [simpleData, setSimpleData] = React.useState({ name: 'Jochen' })
    const simpleValidate = React.useMemo(() => ({ $$strict: true, name: { min: 5, type: 'string' } }), [])

    const [model, control] = useModel(simpleData, simpleValidate)

    const errors = control.findErrors()

    const nameErrors = control
        .findErrors('name')
        .map((e) => e.message)
        .join('; ')

    return (
        <div>
            <label className={clsx(nameErrors && styles.error)} title={nameErrors || undefined}>
                <span>Name: </span>
                <input type='text' value={model.name} onChange={(ev) => (model.name = ev.target.value)} />
            </label>
            <button onClick={() => control.reset()}>Zurücksetzen</button>
            <button
                disabled={!control.isDirty() || errors.length > 0}
                onClick={() => setSimpleData(JSON.parse(JSON.stringify(model)))}
            >
                Speichern
            </button>
            <pre>{JSON.stringify(model, null, 2)}</pre>
            <pre>{JSON.stringify(errors, null, 2)}</pre>
            <pre>{JSON.stringify(simpleData, null, 2)}</pre>
        </div>
    )
}) as React.FC
```