{"_id":"postgres-date","_rev":"1908197","name":"postgres-date","description":"Postgres date column parser","dist-tags":{"latest":"2.1.0"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"time":{"modified":"2021-12-08T17:33:17.000Z","created":"2015-06-13T23:53:09.103Z","2.1.0":"2021-12-08T16:38:22.555Z","2.0.1":"2021-03-09T03:33:43.174Z","2.0.0":"2020-10-29T19:37:20.129Z","1.0.7":"2020-08-28T21:29:03.410Z","1.0.6":"2020-08-05T21:06:34.007Z","1.0.5":"2020-04-13T17:23:09.933Z","1.0.4":"2019-04-03T12:01:17.687Z","1.0.3":"2016-07-06T04:16:55.471Z","1.0.2":"2016-05-19T16:30:43.209Z","1.0.1":"2015-12-31T14:58:28.133Z","1.0.0":"2015-06-13T23:53:28.034Z","0.0.0":"2015-06-13T23:53:09.103Z"},"users":{},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"bendrucker.me"},"repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-date.git"},"versions":{"2.1.0":{"name":"postgres-date","main":"index.js","version":"2.1.0","description":"Postgres date column parser","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-date.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"bendrucker.me"},"engines":{"node":">=12"},"scripts":{"test":"standard && tape test.js && tsd"},"keywords":["postgres","date","parser"],"dependencies":{},"devDependencies":{"standard":"^16.0.0","tape":"^5.0.0","tsd":"^0.19.0"},"types":"./index.d.ts","gitHead":"40dc4f66d74dbc4b9b2926fb628aad7fd1563d11","bugs":{"url":"https://github.com/bendrucker/postgres-date/issues"},"homepage":"https://github.com/bendrucker/postgres-date#readme","_id":"postgres-date@2.1.0","_nodeVersion":"16.10.0","_npmVersion":"7.24.0","dist":{"shasum":"b85d3c1fb6fb3c6c8db1e9942a13a3bf625189d0","size":3415,"noattachment":false,"key":"/postgres-date/-/postgres-date-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-date/download/postgres-date-2.1.0.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-date_2.1.0_1638981502424_0.4718802054373974"},"_hasShrinkwrap":false,"publish_time":1638981502555,"_cnpm_publish_time":1638981502555},"2.0.1":{"name":"postgres-date","main":"index.js","version":"2.0.1","description":"Postgres date column parser","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-date.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"bendrucker.me"},"engines":{"node":">=12"},"scripts":{"test":"standard && tape test.js"},"keywords":["postgres","date","parser"],"dependencies":{},"devDependencies":{"standard":"^16.0.0","tape":"^5.0.0"},"gitHead":"5004d724569d1e49b9fc6142b4c133fb527cd6aa","bugs":{"url":"https://github.com/bendrucker/postgres-date/issues"},"homepage":"https://github.com/bendrucker/postgres-date#readme","_id":"postgres-date@2.0.1","_nodeVersion":"14.15.4","_npmVersion":"7.5.2","dist":{"shasum":"638b62e5c33764c292d37b08f5257ecb09231457","size":3349,"noattachment":false,"key":"/postgres-date/-/postgres-date-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-date/download/postgres-date-2.0.1.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-date_2.0.1_1615260823037_0.046453544957917536"},"_hasShrinkwrap":false,"publish_time":1615260823174,"_cnpm_publish_time":1615260823174},"2.0.0":{"name":"postgres-date","main":"index.js","version":"2.0.0","description":"Postgres date column parser","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-date.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"bendrucker.me"},"engines":{"node":">=12"},"scripts":{"test":"standard && tape test.js"},"keywords":["postgres","date","parser"],"dependencies":{},"devDependencies":{"standard":"^16.0.0","tape":"^5.0.0"},"gitHead":"f6b1da83166e3b81e66baf120a557d4800ed0f7b","bugs":{"url":"https://github.com/bendrucker/postgres-date/issues"},"homepage":"https://github.com/bendrucker/postgres-date#readme","_id":"postgres-date@2.0.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"7533e3693115eeb0554acb073139da93f329d571","size":2799,"noattachment":false,"key":"/postgres-date/-/postgres-date-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-date/download/postgres-date-2.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-date_2.0.0_1604000240023_0.2840466546405085"},"_hasShrinkwrap":false,"publish_time":1604000240129,"_cnpm_publish_time":1604000240129},"1.0.7":{"name":"postgres-date","main":"index.js","version":"1.0.7","description":"Postgres date column parser","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-date.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","date","parser"],"dependencies":{},"devDependencies":{"standard":"^14.0.0","tape":"^5.0.0"},"gitHead":"edbfe6e2e603c869215e8b98144bf6de2f6ffa50","bugs":{"url":"https://github.com/bendrucker/postgres-date/issues"},"homepage":"https://github.com/bendrucker/postgres-date#readme","_id":"postgres-date@1.0.7","_nodeVersion":"12.16.2","_npmVersion":"6.14.5","dist":{"shasum":"51bc086006005e5061c591cee727f2531bf641a8","size":2836,"noattachment":false,"key":"/postgres-date/-/postgres-date-1.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-date/download/postgres-date-1.0.7.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-date_1.0.7_1598650143311_0.5375426157445353"},"_hasShrinkwrap":false,"publish_time":1598650143410,"_cnpm_publish_time":1598650143410},"1.0.6":{"name":"postgres-date","main":"index.js","version":"1.0.6","description":"Postgres date column parser","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-date.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","date","parser"],"dependencies":{},"devDependencies":{"standard":"^14.0.0","tape":"^5.0.0"},"gitHead":"2d86d3213f2a7c3518bf1ef7132cbc2fd9ba4bac","bugs":{"url":"https://github.com/bendrucker/postgres-date/issues"},"homepage":"https://github.com/bendrucker/postgres-date#readme","_id":"postgres-date@1.0.6","_nodeVersion":"12.16.2","_npmVersion":"6.14.5","dist":{"shasum":"4925e8085b30c2ba1a06ac91b9a3473954a2ce2d","size":2812,"noattachment":false,"key":"/postgres-date/-/postgres-date-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-date/download/postgres-date-1.0.6.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-date_1.0.6_1596661593875_0.905999626127395"},"_hasShrinkwrap":false,"publish_time":1596661594007,"_cnpm_publish_time":1596661594007},"1.0.5":{"name":"postgres-date","main":"index.js","version":"1.0.5","description":"Postgres date column parser","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-date.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","date","parser"],"dependencies":{},"devDependencies":{"standard":"^14.0.0","tape":"^4.0.0"},"gitHead":"68d3cb38525597e3d3c4695e3f9659c877728193","bugs":{"url":"https://github.com/bendrucker/postgres-date/issues"},"homepage":"https://github.com/bendrucker/postgres-date#readme","_id":"postgres-date@1.0.5","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"shasum":"710b27de5f27d550f6e80b5d34f7ba189213c2ee","size":2370,"noattachment":false,"key":"/postgres-date/-/postgres-date-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-date/download/postgres-date-1.0.5.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-date_1.0.5_1586798589765_0.1719726729509239"},"_hasShrinkwrap":false,"publish_time":1586798589933,"_cnpm_publish_time":1586798589933},"1.0.4":{"name":"postgres-date","main":"index.js","version":"1.0.4","description":"Postgres date column parser","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-date.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","date","parser"],"dependencies":{},"devDependencies":{"tape":"^4.0.0","standard":"^12.0.1"},"gitHead":"1b6c45f03ea18cff85494d294d2a4af6c8144f4b","bugs":{"url":"https://github.com/bendrucker/postgres-date/issues"},"homepage":"https://github.com/bendrucker/postgres-date#readme","_id":"postgres-date@1.0.4","_nodeVersion":"10.15.0","_npmVersion":"6.7.0","dist":{"shasum":"1c2728d62ef1bff49abdd35c1f86d4bdf118a728","size":2357,"noattachment":false,"key":"/postgres-date/-/postgres-date-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-date/download/postgres-date-1.0.4.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-date_1.0.4_1554292877538_0.4091171012147028"},"_hasShrinkwrap":false,"publish_time":1554292877687,"_cnpm_publish_time":1554292877687},"1.0.3":{"name":"postgres-date","main":"index.js","version":"1.0.3","description":"Postgres date column parser","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-date.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","date","parser"],"dependencies":{},"devDependencies":{"tape":"^4.0.0","standard":"^4.0.0"},"files":["index.js","readme.md"],"gitHead":"b4156af39aa661a719b907ecc78bdc44d7fcb55a","bugs":{"url":"https://github.com/bendrucker/postgres-date/issues"},"homepage":"https://github.com/bendrucker/postgres-date#readme","_id":"postgres-date@1.0.3","_shasum":"e2d89702efdb258ff9d9cee0fe91bd06975257a8","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"e2d89702efdb258ff9d9cee0fe91bd06975257a8","size":2147,"noattachment":false,"key":"/postgres-date/-/postgres-date-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-date/download/postgres-date-1.0.3.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/postgres-date-1.0.3.tgz_1467778611321_0.30105624767020345"},"directories":{},"publish_time":1467778615471,"_cnpm_publish_time":1467778615471,"_hasShrinkwrap":false},"1.0.2":{"name":"postgres-date","main":"index.js","version":"1.0.2","description":"Postgres date column parser","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-date.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","date","parser"],"dependencies":{},"devDependencies":{"tape":"^4.0.0","standard":"^4.0.0"},"files":["index.js","readme.md"],"gitHead":"fae4d677438740f6d9fb00ce55cd1e7056c4802d","bugs":{"url":"https://github.com/bendrucker/postgres-date/issues"},"homepage":"https://github.com/bendrucker/postgres-date#readme","_id":"postgres-date@1.0.2","_shasum":"2d48a52503ad467e4233ec1d348e9ddf581a2d37","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"2d48a52503ad467e4233ec1d348e9ddf581a2d37","size":2185,"noattachment":false,"key":"/postgres-date/-/postgres-date-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-date/download/postgres-date-1.0.2.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/postgres-date-1.0.2.tgz_1463675439927_0.2104354272596538"},"directories":{},"publish_time":1463675443209,"_cnpm_publish_time":1463675443209,"_hasShrinkwrap":false},"1.0.1":{"name":"postgres-date","main":"index.js","version":"1.0.1","description":"Postgres date column parser","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-date.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","date","parser"],"dependencies":{},"devDependencies":{"tape":"^4.0.0","standard":"^4.0.0"},"files":["index.js","readme.md"],"gitHead":"c4e54489bcd813a5d6dfcac2ca48d10f82435a32","bugs":{"url":"https://github.com/bendrucker/postgres-date/issues"},"homepage":"https://github.com/bendrucker/postgres-date#readme","_id":"postgres-date@1.0.1","_shasum":"5c78c8998405ff16a5ac4ecb29cf682fae07148b","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"5c78c8998405ff16a5ac4ecb29cf682fae07148b","size":2099,"noattachment":false,"key":"/postgres-date/-/postgres-date-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-date/download/postgres-date-1.0.1.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"directories":{},"publish_time":1451573908133,"_cnpm_publish_time":1451573908133,"_hasShrinkwrap":false},"1.0.0":{"name":"postgres-date","main":"index.js","version":"1.0.0","description":"Postgres date column parser","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-date.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","date","parser"],"dependencies":{},"devDependencies":{"tape":"^4.0.0","standard":"^4.0.0"},"files":["index.js","readme.md"],"gitHead":"34b02f42ce987cd80731e928fe96d71a79cd6af2","bugs":{"url":"https://github.com/bendrucker/postgres-date/issues"},"homepage":"https://github.com/bendrucker/postgres-date#readme","_id":"postgres-date@1.0.0","_shasum":"cd054c8c9aea1bd93cd0d674b4f79daec8b1937e","_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":"cd054c8c9aea1bd93cd0d674b4f79daec8b1937e","size":2108,"noattachment":false,"key":"/postgres-date/-/postgres-date-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-date/download/postgres-date-1.0.0.tgz"},"directories":{},"publish_time":1434239608034,"_cnpm_publish_time":1434239608034,"_hasShrinkwrap":false},"0.0.0":{"name":"postgres-date","main":"index.js","version":"0.0.0","description":"Postgres date column parser","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-date.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","date","parser"],"dependencies":{},"devDependencies":{"tape":"^4.0.0","standard":"^4.0.0"},"files":["index.js","readme.md"],"gitHead":"f4aa4b3b9540ce1304986b56db49197f6f53228e","bugs":{"url":"https://github.com/bendrucker/postgres-date/issues"},"homepage":"https://github.com/bendrucker/postgres-date#readme","_id":"postgres-date@0.0.0","_shasum":"bd4e390909078cf3c2f5627e93dbe38c213f516d","_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":"bd4e390909078cf3c2f5627e93dbe38c213f516d","size":2105,"noattachment":false,"key":"/postgres-date/-/postgres-date-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-date/download/postgres-date-0.0.0.tgz"},"directories":{},"publish_time":1434239589103,"_cnpm_publish_time":1434239589103,"_hasShrinkwrap":false}},"readme":"# postgres-date [![tests](https://github.com/bendrucker/postgres-date/workflows/tests/badge.svg)](https://github.com/bendrucker/postgres-date/actions?query=workflow%3Atests)\n\n> Postgres date output parser\n\nThis package parses [date/time outputs](https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-DATETIME-OUTPUT) from Postgres into Javascript `Date` objects. Its goal is to match Postgres behavior and preserve data accuracy.\n\nIf you find a case where a valid Postgres output results in incorrect parsing (including loss of precision), please [create a pull request](https://github.com/bendrucker/postgres-date/compare) and provide a failing test.\n\n**Supported Postgres Versions:** `>= 9.6`\n\nAll prior versions of Postgres are likely compatible but not officially supported.\n\n## Install\n\n```\nnpm install --save postgres-date\n```\n\n## Usage\n\n```js\nconst parse = require('postgres-date')\nparse('2011-01-23 22:15:51Z')\n// => 2011-01-23T22:15:51.000Z\n```\n\n## API\n\n#### `parse(isoDate)` -> `date`\n\n##### isoDate\n\n*Required*  \nType: `string`\n\nA date string from Postgres.\n\n## Releases\n\nThe following semantic versioning increments will be used for changes:\n\n* **Major**: Removal of support for Node.js versions or Postgres versions (not expected)\n* **Minor**: Unused, since Postgres returns dates in standard ISO 8601 format\n* **Patch**: Any fix for parsing behavior\n\n## License\n\nMIT © [Ben Drucker](http://bendrucker.me)\n","_attachments":{},"homepage":"https://github.com/bendrucker/postgres-date#readme","bugs":{"url":"https://github.com/bendrucker/postgres-date/issues"},"license":"MIT"}