postgres-array
Advanced tools
Comparing version 2.0.0 to 3.0.0
{ | ||
"name": "postgres-array", | ||
"main": "index.js", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "Parse postgres array columns", | ||
@@ -14,3 +14,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=4" | ||
"node": ">=12" | ||
}, | ||
@@ -28,4 +28,4 @@ "scripts": { | ||
"devDependencies": { | ||
"standard": "^12.0.1", | ||
"tape": "^4.0.0" | ||
"standard": "^15.0.0", | ||
"tape": "^5.0.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "files": [ |
@@ -1,2 +0,2 @@ | ||
# postgres-array [![Build Status](https://travis-ci.org/bendrucker/postgres-array.svg?branch=master)](https://travis-ci.org/bendrucker/postgres-array) | ||
# postgres-array [![tests](https://github.com/bendrucker/postgres-array/workflows/tests/badge.svg)](https://github.com/bendrucker/postgres-array/actions?query=workflow%3Atests) | ||
@@ -9,3 +9,3 @@ > Parse postgres array columns | ||
``` | ||
$ npm install --save postgres-array | ||
npm install --save postgres-array | ||
``` | ||
@@ -17,5 +17,5 @@ | ||
```js | ||
var postgresArray = require('postgres-array') | ||
const { parse } = require('postgres-array') | ||
postgresArray.parse('{1,2,3}', (value) => parseInt(value, 10)) | ||
parse('{1,2,3}', (value) => parseInt(value, 10)) | ||
//=> [1, 2, 3] | ||
@@ -22,0 +22,0 @@ ``` |
4912