{"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","tarball":"http://registry-npm.ywwl.com/postgres-array/download/postgres-array-1.0.0.tgz","integrity":"sha512-bgQ7BuXfPmSG1UztSZzm6vCWVs5u4jH+P3Qr8yQVVW3t5GN9682TenHQUd9T8zbi5IEMYdJNCypb/8n/z6pT6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtWUI6MwAuGy77Nrve4ygjwIcOdG2jc/Lny2EwVx3moAIhAOlVqTOScCvi673184ApJ3Aeusy0USR6WBSkQ4weNR2E"}],"size":2099,"noattachment":false,"key":"/postgres-array/-/postgres-array-1.0.0.tgz"},"directories":{},"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","publish_time":1434151492461,"_cnpm_publish_time":1434151492461,"dist-tags":{"latest":"3.0.4"}}