# @oly_op/uuid-dashes

> uuid-dashes

Latest version **1.0.0** (published 2021-05-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @oly_op/uuid-dashes
pnpm add @oly_op/uuid-dashes
yarn add @oly_op/uuid-dashes
bun add @oly_op/uuid-dashes
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-05-26 |
| First published | 2021-05-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Oliver Plummer |
| Maintainers | oly_op |

## Links

- npm: https://www.npmjs.com/package/@oly_op/uuid-dashes
- Repository: https://github.com/olyop/uuid-dashes
- Homepage: https://github.com/olyop/uuid-dashes/blob/master/README.md
- Issues: https://github.com/olyop/uuid-dashess/issues
- npm.io page: https://npm.io/package/@oly_op/uuid-dashes

## Recent versions

- 1.0.0 (latest) — 2021-05-26

## README

# pg-helpers
A wrapper library for the [pg](https://www.npmjs.com/package/pg) npm package.

## Installation
`npm install @oly_op/pg-helpers`

## Usage
The package exports helpers which you can import individually.

`import {  query, parseTable } from "@oly_op/pg-helpers"`

## API

Query function
* `query`

Result parsing helpers:
* `parseRow`
* `parseTable`
* `getResRow`
* `getRowCount`
* `getResExists`
* `getRowCountOrNull`
* `isResEmpty`
* `convertToCamelCase`
* `convertToSnakeCase`

Types:
```typescript
import type { Pool, PoolClient, QueryResult } from "pg"

export type Client = Pool | PoolClient

export type QueryRes<T = Record<string, unknown>> = QueryResult<T>

export type Parse<T> = (res: QueryRes) => T

export interface Variable {
	key: string,
	string?: boolean,
	parameterized?: boolean,
	value: string | number | boolean | null,
}
```

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