# @types/sqlstring

> TypeScript definitions for sqlstring

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

## Install

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

## 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 | 2.3.2 |
| Published | 2023-11-07 |
| First published | 2017-07-14 |
| 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 | 51439 |
| Maintainers | types |

## Links

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

## Recent versions

- 2.3.2 (latest) — 2023-11-07
- 2.3.0 (ts3.3) — 2020-12-12
- 2.2.1 (ts2.3) — 2019-01-03
- 2.3.1 — 2023-10-18
- 2.2.0 — 2017-07-14

## README

# Installation
> `npm install --save @types/sqlstring`

# Summary
This package contains type definitions for sqlstring (https://github.com/mysqljs/sqlstring).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sqlstring.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sqlstring/index.d.ts)
````ts
export function escapeId(value: any, forbidQualified?: boolean): string;
export function escape(value: any, stringifyObjects?: boolean, timeZone?: string): string;
export function format(sql: string, args?: object | any[], stringifyObjects?: boolean, timeZone?: string): string;
export function raw(sql: string): { toSqlString: () => string };

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Marvin Hagemeister](https://github.com/marvinhagemeister), and [koooge](https://github.com/koooge).

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