# @types/js-sha1

> TypeScript definitions for js-sha1

Latest version **0.6.3** (published 2024-11-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/js-sha1
pnpm add @types/js-sha1
yarn add @types/js-sha1
bun add @types/js-sha1
```

## Health

**Score 55/100 (C)** — status: stable.

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

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

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.6.3 |
| Published | 2024-11-19 |
| First published | 2023-05-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51432 |
| Maintainers | types |

## Links

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

## Recent versions

- 0.6.3 (latest) — 2024-11-19
- 0.6.2 (ts4.5) — 2023-11-07
- 0.6.0 (ts4.3) — 2023-05-02
- 0.6.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/js-sha1`

# Summary
This package contains type definitions for js-sha1 (https://github.com/emn178/js-sha1).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/js-sha1.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/js-sha1/index.d.ts)
````ts
interface JsSha1Prototype {
    update(message: string | ArrayBufferLike): JsSha1Prototype;
    hex(message?: string): string;
    array(message?: string): number[];
    digest(message?: string): number[];
    arrayBuffer(message?: string): ArrayBuffer;
}

interface JsSha1 extends JsSha1Prototype {
    (message: string | Uint8Array | ArrayBuffer | Array<number>): string;
    create(): JsSha1Prototype;
}

declare var sha1: JsSha1;

export = sha1;
export as namespace sha1;

````

### Additional Details
 * Last updated: Tue, 19 Nov 2024 10:37:30 GMT
 * Dependencies: none

# Credits
These definitions were written by [Igor N. Dultsev](https://github.com/yhaskell).

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