# @types/isbn-utils

> TypeScript definitions for isbn-utils

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

## Install

```sh
npm install @types/isbn-utils
pnpm add @types/isbn-utils
yarn add @types/isbn-utils
bun add @types/isbn-utils
```

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

## Links

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

## Recent versions

- 1.1.6 (latest) — 2023-11-07
- 1.1.3 (ts2.2) — 2017-08-21
- 1.1.5 — 2023-10-18
- 1.1.4 — 2023-09-26
- 1.1.2 — 2017-04-17
- 1.1.1 — 2017-03-30
- 1.1.0 — 2017-03-01

## README

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

export class ISBNcodes {
    readonly source: string;
    readonly prefix: string;
    readonly group: string;
    readonly publisher: string;
    readonly article: string;
    readonly check: string;
    readonly check10: string;
    readonly check13: string;
    readonly groupname: string;
}

export class ISBN {
    constructor(val: string, groups: IGroups);
    asIsbn10(hyphenate?: boolean): string;
    asIsbn13(hyphenate?: boolean): string;
    codes: ISBNcodes;
    isIsbn10(): boolean;
    isIsbn13(): boolean;
    isValid(): boolean;
}

export function asIsbn10(isbn: string, hyphenate?: boolean): string;
export function asIsbn13(isbn: string, hyphenate?: boolean): string;
export function parse(isbn: string, groups?: IGroups): ISBN | null;
export function hyphenate(isbn: string): string;
export function isValid(isbn: string, groups?: IGroups): boolean;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [Jørgen Elgaard Larsen](https://github.com/elhaard).

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