{"_id":"postgres-array","_rev":"4091814","name":"postgres-array","description":"Parse postgres array columns","dist-tags":{"latest":"3.0.4"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"time":{"modified":"2025-12-02T22:23:48.000Z","created":"2015-06-12T23:24:52.461Z","3.0.4":"2025-03-06T16:20:51.517Z","3.0.3":"2025-03-05T20:41:34.475Z","3.0.2":"2023-02-08T00:04:30.397Z","3.0.1":"2020-10-29T19:49:51.914Z","3.0.0":"2020-10-29T19:47:03.143Z","2.0.0":"2018-10-22T18:12:08.067Z","1.0.3":"2018-09-17T21:53:16.045Z","1.0.2":"2016-12-09T22:54:13.268Z","1.0.1":"2016-12-09T22:51:04.296Z","1.0.0":"2015-06-12T23:24:52.461Z"},"users":{},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"bendrucker.me"},"repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-array.git"},"versions":{"3.0.4":{"name":"postgres-array","main":"index.js","version":"3.0.4","description":"Parse postgres array columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-array.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"bendrucker.me"},"engines":{"node":">=12"},"scripts":{"test":"standard && tape test.js"},"types":"index.d.ts","keywords":["postgres","array","parser"],"dependencies":{},"devDependencies":{"standard":"^17.0.0","tape":"^5.0.0"},"_id":"postgres-array@3.0.4","gitHead":"3d215dbec63d9f799cfda1438a07b657bb51748b","bugs":{"url":"https://github.com/bendrucker/postgres-array/issues"},"homepage":"https://github.com/bendrucker/postgres-array#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"4efcaf4d2c688d8bcaa8620ed13f35f299f7528c","size":2798,"noattachment":false,"key":"/postgres-array/-/postgres-array-3.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-array/download/postgres-array-3.0.4.tgz"},"_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"directories":{},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postgres-array_3.0.4_1741278051338_0.8879817764988662"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-06T16:20:51.517Z","publish_time":1741278051517,"_source_registry_name":"default","_cnpm_publish_time":1741278051517},"3.0.3":{"name":"postgres-array","main":"index.js","version":"3.0.3","description":"Parse postgres array columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-array.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"bendrucker.me"},"engines":{"node":">=12"},"scripts":{"test":"standard && tape test.js"},"types":"index.d.ts","keywords":["postgres","array","parser"],"dependencies":{},"devDependencies":{"standard":"^17.0.0","tape":"^5.0.0"},"_id":"postgres-array@3.0.3","gitHead":"799ee89d4fc239b9b97a79d51da3f4b82824a787","bugs":{"url":"https://github.com/bendrucker/postgres-array/issues"},"homepage":"https://github.com/bendrucker/postgres-array#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"6714eae3011dfbb3ae071c24f37c332767791868","size":2838,"noattachment":false,"key":"/postgres-array/-/postgres-array-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-array/download/postgres-array-3.0.3.tgz"},"_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"directories":{},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postgres-array_3.0.3_1741207294302_0.6307276421698924"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-05T20:41:34.475Z","publish_time":1741207294475,"_source_registry_name":"default","_cnpm_publish_time":1741207294475},"3.0.2":{"name":"postgres-array","main":"index.js","version":"3.0.2","description":"Parse postgres array columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-array.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"bendrucker.me"},"engines":{"node":">=12"},"scripts":{"test":"standard && tape test.js"},"types":"index.d.ts","keywords":["postgres","array","parser"],"dependencies":{},"devDependencies":{"standard":"^17.0.0","tape":"^5.0.0"},"gitHead":"d29dbdfe86404be7592688b8968906d366f0efd8","bugs":{"url":"https://github.com/bendrucker/postgres-array/issues"},"homepage":"https://github.com/bendrucker/postgres-array#readme","_id":"postgres-array@3.0.2","_nodeVersion":"18.7.0","_npmVersion":"9.4.0","dist":{"shasum":"68d6182cb0f7f152a7e60dc6a6889ed74b0a5f98","size":2077,"noattachment":false,"key":"/postgres-array/-/postgres-array-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-array/download/postgres-array-3.0.2.tgz"},"_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"directories":{},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postgres-array_3.0.2_1675814670207_0.17835940455254629"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-08T00:04:30.397Z","publish_time":1675814670397,"_cnpm_publish_time":1675814670397},"3.0.1":{"name":"postgres-array","main":"index.js","version":"3.0.1","description":"Parse postgres array columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-array.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"bendrucker.me"},"engines":{"node":">=12"},"scripts":{"test":"standard && tape test.js"},"types":"index.d.ts","keywords":["postgres","array","parser"],"dependencies":{},"devDependencies":{"standard":"^16.0.0","tape":"^5.0.0"},"gitHead":"bae00e75e497e7615a289885c3b84d2da5d62fce","bugs":{"url":"https://github.com/bendrucker/postgres-array/issues"},"homepage":"https://github.com/bendrucker/postgres-array#readme","_id":"postgres-array@3.0.1","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"cfe3ddb0f54b7854dd2104beafecfebd16a7f093","size":2235,"noattachment":false,"key":"/postgres-array/-/postgres-array-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-array/download/postgres-array-3.0.1.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postgres-array_3.0.1_1604000991716_0.08373163500522196"},"_hasShrinkwrap":false,"publish_time":1604000991914,"_cnpm_publish_time":1604000991914},"3.0.0":{"name":"postgres-array","main":"index.js","version":"3.0.0","description":"Parse postgres array columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-array.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"bendrucker.me"},"engines":{"node":">=12"},"scripts":{"test":"standard && tape test.js"},"types":"index.d.ts","keywords":["postgres","array","parser"],"dependencies":{},"devDependencies":{"standard":"^15.0.0","tape":"^5.0.0"},"gitHead":"5e314b0afa941ec44f185329512e217d2301c5e6","bugs":{"url":"https://github.com/bendrucker/postgres-array/issues"},"homepage":"https://github.com/bendrucker/postgres-array#readme","_id":"postgres-array@3.0.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"d8bfdf37750192831914d6aa85bca05765f15ef0","size":2230,"noattachment":false,"key":"/postgres-array/-/postgres-array-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-array/download/postgres-array-3.0.0.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postgres-array_3.0.0_1604000823022_0.8508788917425523"},"_hasShrinkwrap":false,"publish_time":1604000823143,"_cnpm_publish_time":1604000823143},"2.0.0":{"name":"postgres-array","main":"index.js","version":"2.0.0","description":"Parse postgres array columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-array.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"bendrucker.me"},"engines":{"node":">=4"},"scripts":{"test":"standard && tape test.js"},"types":"index.d.ts","keywords":["postgres","array","parser"],"dependencies":{},"devDependencies":{"standard":"^12.0.1","tape":"^4.0.0"},"gitHead":"3693b1fbf7c77455b9a7a1f3ac1f7f039947e641","bugs":{"url":"https://github.com/bendrucker/postgres-array/issues"},"homepage":"https://github.com/bendrucker/postgres-array#readme","_id":"postgres-array@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"48f8fce054fbc69671999329b8834b772652d82e","size":2213,"noattachment":false,"key":"/postgres-array/-/postgres-array-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-array/download/postgres-array-2.0.0.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postgres-array_2.0.0_1540231927901_0.3746276826667352"},"_hasShrinkwrap":false,"publish_time":1540231928067,"_cnpm_publish_time":1540231928067},"1.0.3":{"name":"postgres-array","main":"index.js","version":"1.0.3","description":"Parse postgres array columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-array.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"bendrucker.me"},"engines":{"node":">=0.10.0"},"scripts":{"test":"standard && tape test.js"},"types":"index.d.ts","keywords":["postgres","array","parser"],"dependencies":{},"devDependencies":{"ap":"^0.2.0","standard":"^4.0.0","tape":"^4.0.0"},"gitHead":"d73c5b27dc88b462f88d559f6a050d6770f8fea7","bugs":{"url":"https://github.com/bendrucker/postgres-array/issues"},"homepage":"https://github.com/bendrucker/postgres-array#readme","_id":"postgres-array@1.0.3","_npmVersion":"6.2.0","_nodeVersion":"8.11.3","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"c561fc3b266b21451fc6555384f4986d78ec80f5","size":2157,"noattachment":false,"key":"/postgres-array/-/postgres-array-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-array/download/postgres-array-1.0.3.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postgres-array_1.0.3_1537221195637_0.17872985537660502"},"_hasShrinkwrap":false,"publish_time":1537221196045,"_cnpm_publish_time":1537221196045},"1.0.2":{"name":"postgres-array","main":"index.js","version":"1.0.2","description":"Parse postgres array columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-array.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"bendrucker.me"},"engines":{"node":">=0.10.0"},"scripts":{"test":"standard && tape test.js"},"keywords":["postgres","array","parser"],"dependencies":{},"devDependencies":{"ap":"^0.2.0","standard":"^4.0.0","tape":"^4.0.0"},"files":["index.js","readme.md"],"gitHead":"f683e48602e00833c09713f4511c740534c4e32d","bugs":{"url":"https://github.com/bendrucker/postgres-array/issues"},"homepage":"https://github.com/bendrucker/postgres-array#readme","_id":"postgres-array@1.0.2","_shasum":"8e0b32eb03bf77a5c0a7851e0441c169a256a238","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"8e0b32eb03bf77a5c0a7851e0441c169a256a238","size":2092,"noattachment":false,"key":"/postgres-array/-/postgres-array-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-array/download/postgres-array-1.0.2.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/postgres-array-1.0.2.tgz_1481324051273_0.7649495950900018"},"directories":{},"publish_time":1481324053268,"_cnpm_publish_time":1481324053268,"_hasShrinkwrap":false},"1.0.1":{"name":"postgres-array","main":"index.js","version":"1.0.1","description":"Parse postgres array columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-array.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"bendrucker.me"},"engines":{"node":">=0.10.0"},"scripts":{"test":"standard && tape test.js"},"keywords":["postgres","array","parser"],"dependencies":{},"devDependencies":{"ap":"^0.2.0","standard":"^4.0.0","tape":"^4.0.0"},"files":["index.js","readme.md"],"gitHead":"ed26812c59bacc6517170a283237e0179712838b","bugs":{"url":"https://github.com/bendrucker/postgres-array/issues"},"homepage":"https://github.com/bendrucker/postgres-array#readme","_id":"postgres-array@1.0.1","_shasum":"c1591b56507610da57fcb05eec849ac2cc76170e","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"c1591b56507610da57fcb05eec849ac2cc76170e","size":2119,"noattachment":false,"key":"/postgres-array/-/postgres-array-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-array/download/postgres-array-1.0.1.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/postgres-array-1.0.1.tgz_1481323862603_0.6689037827309221"},"directories":{},"publish_time":1481323864296,"_cnpm_publish_time":1481323864296,"_hasShrinkwrap":false},"1.0.0":{"name":"postgres-array","main":"index.js","version":"1.0.0","description":"Parse postgres array columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-array.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"bendrucker.me"},"engines":{"node":">=0.10.0"},"scripts":{"test":"standard && tape test.js"},"keywords":["postgres","array","parser"],"dependencies":{},"devDependencies":{"ap":"^0.2.0","standard":"^4.0.0","tape":"^4.0.0"},"files":["index.js","readme.md"],"gitHead":"3ced22b72207509a23dcf92c8f24651a81056f7e","bugs":{"url":"https://github.com/bendrucker/postgres-array/issues"},"homepage":"https://github.com/bendrucker/postgres-array#readme","_id":"postgres-array@1.0.0","_shasum":"48c2e82935b178bf805e0dff689d137eec2bfe6b","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"dist":{"shasum":"48c2e82935b178bf805e0dff689d137eec2bfe6b","size":2099,"noattachment":false,"key":"/postgres-array/-/postgres-array-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-array/download/postgres-array-1.0.0.tgz"},"directories":{},"publish_time":1434151492461,"_cnpm_publish_time":1434151492461,"_hasShrinkwrap":false}},"readme":"# postgres-array [![tests](https://github.com/bendrucker/postgres-array/workflows/tests/badge.svg)](https://github.com/bendrucker/postgres-array/actions?query=workflow%3Atests)\n\n> Parse postgres array columns\n\n\n## Install\n\n```\nnpm install --save postgres-array\n```\n\n\n## Usage\n\n```js\nconst { parse } = require('postgres-array')\n\nparse('{1,2,3}', (value) => parseInt(value, 10))\n//=> [1, 2, 3]\n```\n\n## API\n\n#### `parse(input, [transform])` -> `array`\n\n##### input\n\n*Required*  \nType: `string`\n\nA Postgres array string.\n\n##### transform\n\nType: `function`  \nDefault: `identity`\n\nA function that transforms non-null values inserted into the array.\n\n\n## License\n\nMIT © [Ben Drucker](http://bendrucker.me)\n","_attachments":{},"homepage":"https://github.com/bendrucker/postgres-array#readme","bugs":{"url":"https://github.com/bendrucker/postgres-array/issues"},"license":"MIT"}