Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cc95e6d

Browse files
committed
reformat readme code
1 parent 65bca3c commit cc95e6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
## Install
77

88
```
9-
$ npm install --save postgres-array
9+
npm install --save postgres-array
1010
```
1111

1212

1313
## Usage
1414

1515
```js
16-
var postgresArray = require('postgres-array')
16+
const { parse } = require('postgres-array')
1717

18-
postgresArray.parse('{1,2,3}', (value) => parseInt(value, 10))
18+
parse('{1,2,3}', (value) => parseInt(value, 10))
1919
//=> [1, 2, 3]
2020
```
2121

0 commit comments

Comments
 (0)