# @types/hasbin

> TypeScript definitions for hasbin

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

## Install

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

## 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.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2023-11-07 |
| First published | 2021-01-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51440 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.2.2 (latest) — 2023-11-07
- 1.2.0 (ts3.3) — 2021-01-06
- 1.2.1 — 2023-10-18

## README

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

declare function hasbin(bin: string, done: (result: boolean) => void): void;

declare namespace hasbin {
    function all(bins: string[], done: (result: boolean) => void): void;

    function any(bins: string[], done: (result: boolean) => void): void;

    function every(bins: string[], done: (result: boolean) => void): void;

    function first(bins: string[], done: (result: false | string) => void): void;

    function some(bins: string[], done: (result: boolean) => void): void;

    function async(bin: string, done: (result: boolean) => void): void;

    function sync(bin: string): boolean;

    namespace all {
        function sync(bins: string[]): boolean;
    }

    namespace any {
        function sync(bins: string[]): boolean;
    }

    namespace every {
        function sync(bins: string[]): boolean;
    }

    namespace first {
        function sync(bins: string[]): false | string;
    }

    namespace some {
        function sync(bins: string[]): boolean;
    }
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [Micha Streppel](https://github.com/michastreppel).

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