TenantAtlas/apps/platform/.pnpm-store/v10/files/37/2e0cfb64536365e3b5287bf58018607da7087e0449fee84466708fba2ed92f2797ed07f249bf8595020e13921b3505fd4c9aa94ca75354bfd6c226319d5fa3
Ahmed Darrazi 9f74f7a658
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
feat: compress governance operator outcomes
2026-04-19 14:15:11 +02:00

44 lines
692 B
Plaintext

# postgres-array [![Build Status](https://travis-ci.org/bendrucker/postgres-array.svg?branch=master)](https://travis-ci.org/bendrucker/postgres-array)
> Parse postgres array columns
## Install
```
$ npm install --save postgres-array
```
## Usage
```js
var postgresArray = require('postgres-array')
postgresArray.parse('{1,2,3}', (value) => parseInt(value, 10))
//=> [1, 2, 3]
```
## API
#### `parse(input, [transform])` -> `array`
##### input
*Required*
Type: `string`
A Postgres array string.
##### transform
Type: `function`
Default: `identity`
A function that transforms non-null values inserted into the array.
## License
MIT © [Ben Drucker](http://bendrucker.me)