{"_id":"postgres-interval","_rev":"3737494","name":"postgres-interval","description":"Parse Postgres interval columns","dist-tags":{"latest":"4.0.2"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"time":{"modified":"2025-02-13T06:17:19.000Z","created":"2015-06-14T00:50:17.058Z","4.0.2":"2024-01-29T22:56:37.078Z","4.0.1":"2023-06-29T20:43:50.624Z","4.0.0":"2021-09-14T01:05:11.776Z","3.0.0":"2020-10-30T01:14:38.707Z","2.1.0":"2020-08-05T01:48:31.141Z","2.0.0":"2020-06-19T01:15:38.072Z","1.2.0":"2019-02-23T00:06:51.959Z","1.1.2":"2018-07-11T22:12:21.388Z","1.1.1":"2017-07-21T04:37:13.436Z","1.1.0":"2017-03-10T23:19:18.887Z","1.0.2":"2016-04-12T19:30:00.305Z","1.0.1":"2015-12-03T18:44:13.913Z","0.0.1":"2015-10-26T16:21:10.732Z","1.0.0":"2015-06-14T00:50:17.058Z"},"users":{},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"https://www.bendrucker.me"},"repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-interval.git"},"versions":{"4.0.2":{"name":"postgres-interval","main":"index.js","version":"4.0.2","description":"Parse Postgres interval columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-interval.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"https://www.bendrucker.me"},"engines":{"node":">=12"},"scripts":{"test":"standard && tape test.js"},"keywords":["postgres","interval","parser"],"dependencies":{},"devDependencies":{"standard":"^17.0.0","tape":"^5.0.0"},"_id":"postgres-interval@4.0.2","gitHead":"b7bcf6a14529880cc5d730b8af83b322ec8299f8","types":"./index.d.ts","bugs":{"url":"https://github.com/bendrucker/postgres-interval/issues"},"homepage":"https://github.com/bendrucker/postgres-interval#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"shasum":"f0b86ab1392c27dadee9b3cc288de371ae2ac06b","size":3502,"noattachment":false,"key":"/postgres-interval/-/postgres-interval-4.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-interval/download/postgres-interval-4.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-interval_4.0.2_1706568996932_0.4681681404928051"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-01-29T22:56:37.078Z","publish_time":1706568997078,"_source_registry_name":"default","_cnpm_publish_time":1706568997078},"4.0.1":{"name":"postgres-interval","main":"index.js","version":"4.0.1","description":"Parse Postgres interval columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-interval.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"https://www.bendrucker.me"},"engines":{"node":">=12"},"scripts":{"test":"standard && tape test.js"},"keywords":["postgres","interval","parser"],"dependencies":{},"devDependencies":{"standard":"^17.0.0","tape":"^5.0.0"},"gitHead":"1b15151cd4e14e6cb18511adfab80a1427eddda0","types":"./index.d.ts","bugs":{"url":"https://github.com/bendrucker/postgres-interval/issues"},"homepage":"https://github.com/bendrucker/postgres-interval#readme","_id":"postgres-interval@4.0.1","_nodeVersion":"19.0.1","_npmVersion":"9.7.2","dist":{"shasum":"14f3bc689cacf033c2172e976d866095a4403833","size":3443,"noattachment":false,"key":"/postgres-interval/-/postgres-interval-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-interval/download/postgres-interval-4.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-interval_4.0.1_1688071430498_0.2895733132800795"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-06-29T20:43:50.624Z","publish_time":1688071430624,"_source_registry_name":"default","_cnpm_publish_time":1688071430624},"4.0.0":{"name":"postgres-interval","main":"index.js","version":"4.0.0","description":"Parse Postgres interval columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-interval.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"https://www.bendrucker.me"},"engines":{"node":">=12"},"scripts":{"test":"standard && tape test.js"},"keywords":["postgres","interval","parser"],"dependencies":{},"devDependencies":{"standard":"^16.0.0","tape":"^5.0.0"},"gitHead":"ce744662a30ae3104fd35a718bfbae71e362b524","bugs":{"url":"https://github.com/bendrucker/postgres-interval/issues"},"homepage":"https://github.com/bendrucker/postgres-interval#readme","_id":"postgres-interval@4.0.0","_nodeVersion":"16.6.1","_npmVersion":"7.20.3","dist":{"shasum":"baa8966418f75b7309eeb25bcdd56a8590853a95","size":3679,"noattachment":false,"key":"/postgres-interval/-/postgres-interval-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-interval/download/postgres-interval-4.0.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-interval_4.0.0_1631581511624_0.49329935657955915"},"_hasShrinkwrap":false,"publish_time":1631581511776,"_cnpm_publish_time":1631581511776},"3.0.0":{"name":"postgres-interval","main":"index.js","version":"3.0.0","description":"Parse Postgres interval columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-interval.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"https://www.bendrucker.me"},"engines":{"node":">=12"},"scripts":{"test":"standard && tape test.js"},"keywords":["postgres","interval","parser"],"dependencies":{},"devDependencies":{"standard":"^16.0.0","tape":"^5.0.0"},"gitHead":"f58ec4bb28d67fe1f9c9a1ad4ab8066c26de24bc","bugs":{"url":"https://github.com/bendrucker/postgres-interval/issues"},"homepage":"https://github.com/bendrucker/postgres-interval#readme","_id":"postgres-interval@3.0.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"baf7a8b3ebab19b7f38f07566c7aab0962f0c86a","size":3453,"noattachment":false,"key":"/postgres-interval/-/postgres-interval-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-interval/download/postgres-interval-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-interval_3.0.0_1604020478577_0.52444120146222"},"_hasShrinkwrap":false,"publish_time":1604020478707,"_cnpm_publish_time":1604020478707},"2.1.0":{"name":"postgres-interval","main":"index.js","version":"2.1.0","description":"Parse Postgres interval columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-interval.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"bendrucker.me"},"engines":{"node":">=8"},"scripts":{"test":"standard && tape test.js"},"keywords":["postgres","interval","parser"],"dependencies":{},"devDependencies":{"standard":"^14.0.0","tape":"^5.0.0"},"gitHead":"0112e1ecb565ced40584383e286efa464f02b0aa","bugs":{"url":"https://github.com/bendrucker/postgres-interval/issues"},"homepage":"https://github.com/bendrucker/postgres-interval#readme","_id":"postgres-interval@2.1.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.5","dist":{"shasum":"6ba9dffa13edf7863984adef041e757f12edc264","size":3203,"noattachment":false,"key":"/postgres-interval/-/postgres-interval-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-interval/download/postgres-interval-2.1.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-interval_2.1.0_1596592110945_0.48380424057447136"},"_hasShrinkwrap":false,"publish_time":1596592111141,"_cnpm_publish_time":1596592111141},"2.0.0":{"name":"postgres-interval","main":"index.js","version":"2.0.0","description":"Parse Postgres interval columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-interval.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"bendrucker.me"},"engines":{"node":">=8"},"scripts":{"test":"standard && tape test.js"},"keywords":["postgres","interval","parser"],"dependencies":{},"devDependencies":{"standard":"^14.0.0","tape":"^5.0.0"},"gitHead":"14077477e03f0f7c01327c72c4ffa9fab6c3e195","bugs":{"url":"https://github.com/bendrucker/postgres-interval/issues"},"homepage":"https://github.com/bendrucker/postgres-interval#readme","_id":"postgres-interval@2.0.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.5","dist":{"shasum":"942490ff0becbbc34422f8113326803eebc71968","size":3062,"noattachment":false,"key":"/postgres-interval/-/postgres-interval-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-interval/download/postgres-interval-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-interval_2.0.0_1592529337838_0.221154141235554"},"_hasShrinkwrap":false,"publish_time":1592529338072,"_cnpm_publish_time":1592529338072},"1.2.0":{"name":"postgres-interval","main":"index.js","version":"1.2.0","description":"Parse Postgres interval columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-interval.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","interval","parser"],"dependencies":{"xtend":"^4.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^12.0.1"},"gitHead":"c92e936bf6383691b1572f3e85597fb4d0518e96","bugs":{"url":"https://github.com/bendrucker/postgres-interval/issues"},"homepage":"https://github.com/bendrucker/postgres-interval#readme","_id":"postgres-interval@1.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"b460c82cb1587507788819a06aa0fffdb3544695","size":2926,"noattachment":false,"key":"/postgres-interval/-/postgres-interval-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-interval/download/postgres-interval-1.2.0.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postgres-interval_1.2.0_1550880411811_0.41011870344636336"},"_hasShrinkwrap":false,"publish_time":1550880411959,"_cnpm_publish_time":1550880411959},"1.1.2":{"name":"postgres-interval","main":"index.js","version":"1.1.2","description":"Parse Postgres interval columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-interval.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","interval","parser"],"dependencies":{"xtend":"^4.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.0.0"},"files":["index.js","index.d.ts","readme.md"],"gitHead":"4ad742262c641f98b76ac1c7c346c1ea10f29317","bugs":{"url":"https://github.com/bendrucker/postgres-interval/issues"},"homepage":"https://github.com/bendrucker/postgres-interval#readme","_id":"postgres-interval@1.1.2","_npmVersion":"6.1.0","_nodeVersion":"8.9.4","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"bf71ff902635f21cb241a013fc421d81d1db15a9","size":2830,"noattachment":false,"key":"/postgres-interval/-/postgres-interval-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-interval/download/postgres-interval-1.1.2.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postgres-interval_1.1.2_1531347141295_0.5731465715786648"},"_hasShrinkwrap":false,"publish_time":1531347141388,"_cnpm_publish_time":1531347141388},"1.1.1":{"name":"postgres-interval","main":"index.js","version":"1.1.1","description":"Parse Postgres interval columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-interval.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","interval","parser"],"dependencies":{"xtend":"^4.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.0.0"},"files":["index.js","readme.md"],"gitHead":"e0ef9f831792e819c9ffddca0bdac66a536cc89d","bugs":{"url":"https://github.com/bendrucker/postgres-interval/issues"},"homepage":"https://github.com/bendrucker/postgres-interval#readme","_id":"postgres-interval@1.1.1","_npmVersion":"5.0.3","_nodeVersion":"6.11.0","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"acdb0f897b4b1c6e496d9d4e0a853e1c428f06f0","size":2720,"noattachment":false,"key":"/postgres-interval/-/postgres-interval-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-interval/download/postgres-interval-1.1.1.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postgres-interval-1.1.1.tgz_1500611833316_0.36908435611985624"},"directories":{},"publish_time":1500611833436,"_hasShrinkwrap":false,"_cnpm_publish_time":1500611833436},"1.1.0":{"name":"postgres-interval","main":"index.js","version":"1.1.0","description":"Parse Postgres interval columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-interval.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","interval","parser"],"dependencies":{"xtend":"^4.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.0.0"},"files":["index.js","readme.md"],"gitHead":"7fdec76092ca35e2c74e9cef496ad0d59fc0d8f0","bugs":{"url":"https://github.com/bendrucker/postgres-interval/issues"},"homepage":"https://github.com/bendrucker/postgres-interval#readme","_id":"postgres-interval@1.1.0","_shasum":"1031e7bac34564132862adc9eb6c6d2f3aa75bb4","_from":".","_npmVersion":"4.1.2","_nodeVersion":"6.8.1","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"1031e7bac34564132862adc9eb6c6d2f3aa75bb4","size":2707,"noattachment":false,"key":"/postgres-interval/-/postgres-interval-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-interval/download/postgres-interval-1.1.0.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/postgres-interval-1.1.0.tgz_1489187957055_0.43719073268584907"},"directories":{},"publish_time":1489187958887,"_cnpm_publish_time":1489187958887,"_hasShrinkwrap":false},"1.0.2":{"name":"postgres-interval","main":"index.js","version":"1.0.2","description":"Parse Postgres interval columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-interval.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","interval","parser"],"dependencies":{"xtend":"^4.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.0.0"},"files":["index.js","readme.md"],"gitHead":"171f36c53ce9a6f80d7e6b08579232946388de28","bugs":{"url":"https://github.com/bendrucker/postgres-interval/issues"},"homepage":"https://github.com/bendrucker/postgres-interval#readme","_id":"postgres-interval@1.0.2","_shasum":"7261438d862b412921c6fdb7617668424b73a6ed","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"7261438d862b412921c6fdb7617668424b73a6ed","size":2183,"noattachment":false,"key":"/postgres-interval/-/postgres-interval-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-interval/download/postgres-interval-1.0.2.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postgres-interval-1.0.2.tgz_1460489398083_0.6353156298864633"},"directories":{},"publish_time":1460489400305,"_cnpm_publish_time":1460489400305,"_hasShrinkwrap":false},"1.0.1":{"name":"postgres-interval","main":"index.js","version":"1.0.1","description":"Parse Postgres interval columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-interval.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","interval","parser"],"dependencies":{"xtend":"^4.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.0.0"},"files":["index.js","readme.md"],"gitHead":"9df1585bc1d3e475dfd7e2e9db13af1154167d02","bugs":{"url":"https://github.com/bendrucker/postgres-interval/issues"},"homepage":"https://github.com/bendrucker/postgres-interval#readme","_id":"postgres-interval@1.0.1","_shasum":"705b0273b5e8397dbedd3ad74cb0729747be34b4","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"705b0273b5e8397dbedd3ad74cb0729747be34b4","size":2164,"noattachment":false,"key":"/postgres-interval/-/postgres-interval-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-interval/download/postgres-interval-1.0.1.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"directories":{},"publish_time":1449168253913,"_cnpm_publish_time":1449168253913,"_hasShrinkwrap":false},"0.0.1":{"name":"postgres-interval","main":"index.js","version":"0.0.1","description":"Parse Postgres interval columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-interval.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","interval","parser"],"dependencies":{"xtend":"^4.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.0.0"},"files":["index.js","readme.md"],"gitHead":"7b126b543b22938c36ca6b8f8ab47815b7a282b4","bugs":{"url":"https://github.com/bendrucker/postgres-interval/issues"},"homepage":"https://github.com/bendrucker/postgres-interval#readme","_id":"postgres-interval@0.0.1","_shasum":"bbfa745b3251ead378f8ddd58fdc805a7cc5df93","_from":".","_npmVersion":"3.3.3","_nodeVersion":"2.3.3","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"bbfa745b3251ead378f8ddd58fdc805a7cc5df93","size":2171,"noattachment":false,"key":"/postgres-interval/-/postgres-interval-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-interval/download/postgres-interval-0.0.1.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"directories":{},"publish_time":1445876470732,"_cnpm_publish_time":1445876470732,"_hasShrinkwrap":false},"1.0.0":{"name":"postgres-interval","main":"index.js","version":"1.0.0","description":"Parse Postgres interval columns","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bendrucker/postgres-interval.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","interval","parser"],"dependencies":{"xtend":"^4.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.0.0"},"files":["index.js","readme.md"],"gitHead":"0933b0e995abc0752aca71c50f1f17b041276861","bugs":{"url":"https://github.com/bendrucker/postgres-interval/issues"},"homepage":"https://github.com/bendrucker/postgres-interval#readme","_id":"postgres-interval@1.0.0","_shasum":"ddf3f4c67377e28a872bf3189305b4c7eb02ef14","_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":"ddf3f4c67377e28a872bf3189305b4c7eb02ef14","size":2151,"noattachment":false,"key":"/postgres-interval/-/postgres-interval-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postgres-interval/download/postgres-interval-1.0.0.tgz"},"directories":{},"publish_time":1434243017058,"_cnpm_publish_time":1434243017058,"_hasShrinkwrap":false}},"readme":"# postgres-interval [![tests](https://github.com/bendrucker/postgres-interval/workflows/tests/badge.svg)](https://github.com/bendrucker/postgres-interval/actions?query=workflow%3Atests)\n\n> Parse Postgres interval columns\n\n\n## Install\n\n```sh\nnpm install --save postgres-interval\n```\n\n\n## Usage\n\n```js\nvar parse = require('postgres-interval')\nvar interval = parse('01:02:03')\n// => { hours: 1, minutes: 2, seconds: 3 }\ninterval.toPostgres()\n// 1 hour 2 minutes 3 seconds\ninterval.toISOString()\n// P0Y0M0DT1H2M3S\ninterval.toISOStringShort()\n// PT1H2M3S\n```\n\nThis package parses the default Postgres interval style. If you have changed [`intervalstyle`](https://www.postgresql.org/docs/current/runtime-config-client.html#GUC-INTERVALSTYLE), you will need to set it back to the default:\n\n```sql\nset intervalstyle to default;\n```\n\n## API\n\n#### `parse(pgInterval)` -> `interval`\n\n##### pgInterval\n\n*Required*  \nType: `string`\n\nA Postgres interval string.\n\nThis package is focused on parsing Postgres outputs. It optimizes for performance by assuming that inputs follow the default interval format. It does not perform any validation on the input. If any interval field is not found, its value will be set to `0` in the returned `interval`.\n\n#### `interval.toPostgres()` -> `string`\n\nReturns an interval string. This allows the interval object to be passed into prepared statements.\n\n#### `interval.toISOString()` -> `string`\n\nReturns an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) compliant string, for example `P0Y0M0DT0H9M0S`.\n\nAlso available as `interval.toISO()` for backwards compatibility.\n\n#### `interval.toISOStringShort()` -> `string`\n\nReturns an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) compliant string shortened to minimum length, for example `PT9M`.\n\n## License\n\nMIT © [Ben Drucker](http://bendrucker.me)\n","_attachments":{},"homepage":"https://github.com/bendrucker/postgres-interval#readme","bugs":{"url":"https://github.com/bendrucker/postgres-interval/issues"},"license":"MIT"}