# @types/redis-scripto

> TypeScript definitions for redis-scripto

Latest version **0.1.8** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/redis-scripto
pnpm add @types/redis-scripto
yarn add @types/redis-scripto
bun add @types/redis-scripto
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.8 |
| Published | 2023-11-07 |
| First published | 2016-08-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51438 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/redis-scripto
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redis-scripto
- npm.io page: https://npm.io/package/@types/redis-scripto

## Dependencies (1)

- [@types/redis](https://npm.io/package/@types/redis.md) ^2.8.0

## Recent versions

- 0.1.8 (latest) — 2023-11-07
- 0.1.5 (ts3.8) — 2021-12-09
- 0.1.4 (ts3.0) — 2020-05-15
- 0.1.3 (ts2.0) — 2016-09-19
- 0.1.7 — 2023-10-18
- 0.1.6 — 2023-09-27
- 0.1.2 — 2016-08-25
- 0.1.1 — 2016-08-22

## README

# Installation
> `npm install --save @types/redis-scripto`

# Summary
This package contains type definitions for redis-scripto (https://github.com/arunoda/node-redis-scripto).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redis-scripto.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redis-scripto/index.d.ts)
````ts
import * as redis from "redis";

declare class Scripto {
    constructor(redisClient: redis.RedisClient);

    eval(scriptName: string, keys: string[], args: any[], callback: (err: Error, result: any) => void): void;
    evalSha(scriptName: string, keys: string[], args: any[], callback: (err: Error, result: any) => void): void;

    load(scripts: Scripto.Scripts): void;
    loadFromDir(scriptsDir: string): void;
    loadFromFile(name: string, filepath: string): void;

    run(scriptName: string, keys: string[], args: any[], callback: (err: Error, result: any) => void): void;
}

declare namespace Scripto {
    export type Script = string;

    export interface Scripts {
        [scriptName: string]: Script;
    }
}

export = Scripto;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/redis](https://npmjs.com/package/@types/redis)

# Credits
These definitions were written by [Seth Westphal](https://github.com/westy92).

---
_Source: https://npm.io/package/@types/redis-scripto · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
