curaflow/node_modules/postgres-array
Deep Koluguri 231a84182e
Build Curio HMS / build-and-deploy (push) Successful in 50s Details
feat: full multi-tenant auth - JWT login, clinic registration, super admin CRUD
2026-05-25 21:43:30 -04:00
..
index.d.ts feat: full multi-tenant auth - JWT login, clinic registration, super admin CRUD 2026-05-25 21:43:30 -04:00
index.js feat: full multi-tenant auth - JWT login, clinic registration, super admin CRUD 2026-05-25 21:43:30 -04:00
license feat: full multi-tenant auth - JWT login, clinic registration, super admin CRUD 2026-05-25 21:43:30 -04:00
package.json feat: full multi-tenant auth - JWT login, clinic registration, super admin CRUD 2026-05-25 21:43:30 -04:00
readme.md feat: full multi-tenant auth - JWT login, clinic registration, super admin CRUD 2026-05-25 21:43:30 -04:00

readme.md

postgres-array Build Status

Parse postgres array columns

Install

$ npm install --save postgres-array

Usage

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