# @types/pg-format

> TypeScript definitions for pg-format

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

## Install

```sh
npm install @types/pg-format
pnpm add @types/pg-format
yarn add @types/pg-format
bun add @types/pg-format
```

## 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.0.5 |
| Published | 2023-11-07 |
| First published | 2018-05-27 |
| 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 | 51438 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.0.5 (latest) — 2023-11-07
- 1.0.2 (ts3.6) — 2021-07-08
- 1.0.1 (ts3.1) — 2020-08-22
- 1.0.0 (ts2.2) — 2018-05-27
- 1.0.4 — 2023-10-18
- 1.0.3 — 2023-09-24

## README

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

declare function format(fmt: string, ...args: any[]): string;

declare namespace format {
    function config(config?: {
        pattern: {
            ident?: string | undefined;
            literal?: string | undefined;
            string?: string | undefined;
        };
    }): void;
    function ident(val: string | number | boolean | any[] | Date): string;
    function literal(val: string | number | boolean | any[] | Date | object | null | undefined): string;
    function string(val: string | number | boolean | any[] | Date | object | null | undefined): string;
    function withArray(fmt: string, array: any[]): string;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Alec Zopf](https://github.com/zopf).

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