# @types/saslmechanisms

> TypeScript definitions for saslmechanisms

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

## Install

```sh
npm install @types/saslmechanisms
pnpm add @types/saslmechanisms
yarn add @types/saslmechanisms
bun add @types/saslmechanisms
```

## 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.3 |
| Published | 2023-11-07 |
| First published | 2018-12-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

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

## Recent versions

- 0.1.3 (latest) — 2023-11-07
- 0.1.0 (ts2.0) — 2018-12-05
- 0.1.2 — 2023-10-18
- 0.1.1 — 2023-09-25

## README

# Installation
> `npm install --save @types/saslmechanisms`

# Summary
This package contains type definitions for saslmechanisms (https://github.com/jaredhanson/js-sasl).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/saslmechanisms.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/saslmechanisms/index.d.ts)
````ts
export = Factory;

declare class Factory {
    static Factory: typeof Factory;

    use(name: string, mechanism: Factory.MechanismStatic): this;
    use(mechanism: Factory.MechanismStatic): this;
    create(mechanisms: string[]): Factory.Mechanism | null;
}

declare namespace Factory {
    interface MechanismStatic {
        new(): Mechanism;
        prototype: {
            [key: string]: any;
            name: string;
        };
    }
    interface Mechanism {
        name: string;

        response(cred: { [key: string]: any }): string;

        challenge(chal: string): void;
    }
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [BendingBender](https://github.com/BendingBender).

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