- Replaced broken .NET backend with Node.js/Express - Restored original website design with purple gradient hero - Updated homepage and shop pages with Bootstrap 5 responsive design - Disabled GitHub remote sync - all code now stored locally only - Created backup scripts and documentation - All changes saved on Ubuntu server at /var/www/SkyArtShop
44 lines
692 B
Markdown
44 lines
692 B
Markdown
# postgres-array [](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)
|