{"_id":"jsonist","_rev":"411538","name":"jsonist","description":"A simple wrapper around for dealing with JSON web APIs","dist-tags":{"latest":"3.0.1"},"maintainers":[{"name":"rvagg","email":""}],"time":{"modified":"2021-08-04T05:10:11.000Z","created":"2014-02-23T08:37:18.461Z","3.0.1":"2019-10-18T11:04:42.227Z","3.0.0":"2019-10-18T11:03:38.362Z","2.1.2":"2019-06-20T00:34:49.605Z","2.1.1":"2019-06-18T12:44:08.642Z","2.1.0":"2017-02-23T04:14:55.062Z","2.0.0":"2017-02-23T03:04:23.231Z","1.3.0":"2015-10-17T02:55:39.237Z","1.2.0":"2015-08-17T11:19:29.564Z","1.1.0":"2015-06-27T02:31:23.631Z","1.0.2":"2015-04-21T10:29:09.322Z","1.0.1":"2015-04-14T06:32:03.968Z","1.0.0":"2015-02-16T01:49:59.067Z","0.1.1":"2014-05-11T08:58:36.072Z","0.1.0":"2014-02-23T22:16:40.306Z","0.0.1":"2014-02-23T17:32:18.636Z","0.0.0":"2014-02-23T08:37:18.461Z"},"users":{"brandondoran":true,"nfreear":true},"author":{"name":"Rod Vagg","email":"r@va.gg"},"repository":{"type":"git","url":"git+https://github.com/rvagg/jsonist.git"},"versions":{"3.0.1":{"name":"jsonist","version":"3.0.1","description":"A simple wrapper around for dealing with JSON web APIs","main":"jsonist.js","scripts":{"lint":"standard *.js","ci":"npm run lint && node test.js","test":"npm run lint && node test.js | faucet"},"repository":{"type":"git","url":"git+https://github.com/rvagg/jsonist.git"},"keywords":["http","hyperquest","json","hungry hungry http hippo!"],"author":{"name":"Rod Vagg","email":"r@va.gg"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/jsonist/issues"},"dependencies":{"bl":"~4.0.0","hyperquest":"~2.1.3","json-stringify-safe":"~5.0.1"},"homepage":"https://github.com/rvagg/jsonist","devDependencies":{"after":"~0.8.2","faucet":"~0.0.1","standard":"~14.3.1","tape":"~4.11.0"},"gitHead":"cdf3d04d89abb16d5470212c956e64313ad85904","_id":"jsonist@3.0.1","_nodeVersion":"12.12.0","_npmVersion":"6.11.3","dist":{"shasum":"b1b9765646cef979561c034a81209a662954952a","size":7356,"noattachment":false,"key":"/jsonist/-/jsonist-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonist/download/jsonist-3.0.1.tgz"},"maintainers":[{"name":"rvagg","email":""}],"_npmUser":{"name":"rvagg","email":"r@va.gg"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsonist_3.0.1_1571396682106_0.186127580360957"},"_hasShrinkwrap":false,"publish_time":1571396682227,"_cnpm_publish_time":1571396682227},"3.0.0":{"name":"jsonist","version":"3.0.0","description":"A simple wrapper around for dealing with JSON web APIs","main":"jsonist.js","scripts":{"test":"node test.js | faucet"},"repository":{"type":"git","url":"git+https://github.com/rvagg/jsonist.git"},"keywords":["http","hyperquest","json","hungry hungry http hippo!"],"author":{"name":"Rod Vagg","email":"r@va.gg"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/jsonist/issues"},"dependencies":{"bl":"~3.0.0","hyperquest":"~2.1.3","json-stringify-safe":"~5.0.1","xtend":"~4.0.1"},"homepage":"https://github.com/rvagg/jsonist","devDependencies":{"after":"~0.8.2","faucet":"~0.0.1","tape":"~4.10.2"},"gitHead":"ef3bdb102681305ee70da1752bab5d06ec0950c3","_id":"jsonist@3.0.0","_nodeVersion":"12.12.0","_npmVersion":"6.11.3","dist":{"shasum":"5afe42dd2d9bacfec1be5ff6e3b9989af1dc08d2","size":6106,"noattachment":false,"key":"/jsonist/-/jsonist-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonist/download/jsonist-3.0.0.tgz"},"maintainers":[{"name":"rvagg","email":""}],"_npmUser":{"name":"rvagg","email":"r@va.gg"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsonist_3.0.0_1571396618265_0.6571740424807204"},"_hasShrinkwrap":false,"publish_time":1571396618362,"_cnpm_publish_time":1571396618362,"deprecated":"accidental re-publish of v2.1.2, use >= 3.0.1 instead"},"2.1.2":{"name":"jsonist","version":"2.1.2","description":"A simple wrapper around for dealing with JSON web APIs","main":"jsonist.js","scripts":{"test":"node test.js | faucet"},"repository":{"type":"git","url":"git+https://github.com/rvagg/jsonist.git"},"keywords":["http","hyperquest","json","hungry hungry http hippo!"],"author":{"name":"Rod Vagg","email":"r@va.gg"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/jsonist/issues"},"dependencies":{"bl":"~3.0.0","hyperquest":"~2.1.3","json-stringify-safe":"~5.0.1","xtend":"~4.0.1"},"homepage":"https://github.com/rvagg/jsonist","devDependencies":{"after":"~0.8.2","faucet":"~0.0.1","tape":"~4.10.2"},"gitHead":"b8210127a288d9812567fdcd1d60709266802765","_id":"jsonist@2.1.2","_nodeVersion":"12.1.0","_npmVersion":"6.9.0","dist":{"shasum":"c1377311e8fc857abe7aa3df197116a911f95324","size":6092,"noattachment":false,"key":"/jsonist/-/jsonist-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonist/download/jsonist-2.1.2.tgz"},"maintainers":[{"name":"rvagg","email":""}],"_npmUser":{"name":"rvagg","email":"r@va.gg"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsonist_2.1.2_1560990889453_0.42125328590291544"},"_hasShrinkwrap":false,"publish_time":1560990889605,"_cnpm_publish_time":1560990889605},"2.1.1":{"name":"jsonist","version":"2.1.1","description":"A simple wrapper around for dealing with JSON web APIs","main":"jsonist.js","scripts":{"test":"node test.js | faucet"},"repository":{"type":"git","url":"git+https://github.com/rvagg/jsonist.git"},"keywords":["http","hyperquest","json","hungry hungry http hippo!"],"author":{"name":"Rod Vagg","email":"r@va.gg"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/jsonist/issues"},"dependencies":{"bl":"~3.0.0","hyperquest":"~2.1.3","json-stringify-safe":"~5.0.1","xtend":"~4.0.1"},"homepage":"https://github.com/rvagg/jsonist","devDependencies":{"after":"~0.8.2","faucet":"~0.0.1","tape":"~4.10.2"},"gitHead":"2311a410d8af8893cea3a2f363a8a955439d1e32","_id":"jsonist@2.1.1","_nodeVersion":"12.1.0","_npmVersion":"6.9.0","dist":{"shasum":"46fa2d417c600008bf6c344a0770962b4ee6b4bc","size":6090,"noattachment":false,"key":"/jsonist/-/jsonist-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonist/download/jsonist-2.1.1.tgz"},"maintainers":[{"name":"rvagg","email":""}],"_npmUser":{"name":"rvagg","email":"r@va.gg"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsonist_2.1.1_1560861848404_0.4617372660415284"},"_hasShrinkwrap":false,"publish_time":1560861848642,"_cnpm_publish_time":1560861848642},"2.1.0":{"name":"jsonist","version":"2.1.0","description":"A simple wrapper around for dealing with JSON web APIs","main":"jsonist.js","scripts":{"test":"node test.js | faucet"},"repository":{"type":"git","url":"git+https://github.com/rvagg/jsonist.git"},"keywords":["http","hyperquest","json","hungry hungry http hippo!"],"author":{"name":"Rod Vagg","email":"r@va.gg"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/jsonist/issues"},"dependencies":{"bl":"~1.2.0","hyperquest":"~2.1.2","json-stringify-safe":"~5.0.1","xtend":"~4.0.1"},"homepage":"https://github.com/rvagg/jsonist","devDependencies":{"after":"~0.8.2","faucet":"~0.0.1","tape":"~4.6.3"},"gitHead":"8121d7e1ea96ec5390c3fa75ac7d6348a0bb89dc","_id":"jsonist@2.1.0","_shasum":"4477a4d16cd377faec58d8cf870b7e392f6d7fe9","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"dist":{"shasum":"4477a4d16cd377faec58d8cf870b7e392f6d7fe9","size":6540,"noattachment":false,"key":"/jsonist/-/jsonist-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonist/download/jsonist-2.1.0.tgz"},"maintainers":[{"name":"rvagg","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jsonist-2.1.0.tgz_1487823294807_0.40431850077584386"},"directories":{},"publish_time":1487823295062,"_cnpm_publish_time":1487823295062,"_hasShrinkwrap":false},"2.0.0":{"name":"jsonist","version":"2.0.0","description":"A simple wrapper around for dealing with JSON web APIs","main":"jsonist.js","scripts":{"test":"node test.js | faucet"},"repository":{"type":"git","url":"git+https://github.com/rvagg/jsonist.git"},"keywords":["http","hyperquest","json","hungry hungry http hippo!"],"author":{"name":"Rod Vagg","email":"r@va.gg"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/jsonist/issues"},"dependencies":{"bl":"~1.0.0","hyperquest":"~1.2.0","json-stringify-safe":"~5.0.0","xtend":"~4.0.0"},"homepage":"https://github.com/rvagg/jsonist","devDependencies":{"after":"~0.8.1","faucet":"~0.0.1","tape":"~3.5.0"},"gitHead":"90f398e2c1489cb5fc6e6de70b3d2b82146076ce","_id":"jsonist@2.0.0","_shasum":"a39adfa3b770c61671dd96605b3e7f67ed1f4d95","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"dist":{"shasum":"a39adfa3b770c61671dd96605b3e7f67ed1f4d95","size":6449,"noattachment":false,"key":"/jsonist/-/jsonist-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonist/download/jsonist-2.0.0.tgz"},"maintainers":[{"name":"rvagg","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/jsonist-2.0.0.tgz_1487819061293_0.6467750226147473"},"directories":{},"publish_time":1487819063231,"_cnpm_publish_time":1487819063231,"_hasShrinkwrap":false},"1.3.0":{"name":"jsonist","version":"1.3.0","description":"A simple wrapper around for dealing with JSON web APIs","main":"jsonist.js","scripts":{"test":"node test.js | faucet"},"repository":{"type":"git","url":"https://github.com/rvagg/jsonist.git"},"keywords":["http","hyperquest","json","hungry hungry http hippo!"],"author":{"name":"Rod Vagg","email":"r@va.gg"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/jsonist/issues"},"dependencies":{"bl":"~1.0.0","hyperquest":"~1.2.0","json-stringify-safe":"~5.0.0","xtend":"~4.0.0"},"homepage":"https://github.com/rvagg/jsonist","devDependencies":{"after":"~0.8.1","faucet":"~0.0.1","tape":"~3.5.0"},"gitHead":"5aa95e949d46a91832e51ada118fe33b70f8c420","_id":"jsonist@1.3.0","_shasum":"c0c74b95ef1c952038619b29efa520b1cc987556","_from":".","_npmVersion":"2.14.7","_nodeVersion":"5.0.0-nightly20151016676e61872f","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":""}],"dist":{"shasum":"c0c74b95ef1c952038619b29efa520b1cc987556","size":5760,"noattachment":false,"key":"/jsonist/-/jsonist-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonist/download/jsonist-1.3.0.tgz"},"directories":{},"publish_time":1445050539237,"_cnpm_publish_time":1445050539237,"_hasShrinkwrap":false},"1.2.0":{"name":"jsonist","version":"1.2.0","description":"A simple wrapper around for dealing with JSON web APIs","main":"jsonist.js","scripts":{"test":"node test.js | faucet"},"repository":{"type":"git","url":"https://github.com/rvagg/jsonist.git"},"keywords":["http","hyperquest","json","hungry hungry http hippo!"],"author":{"name":"Rod Vagg","email":"r@va.gg"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/jsonist/issues"},"dependencies":{"bl":"~1.0.0","hyperquest":"~1.2.0","json-stringify-safe":"~5.0.0","xtend":"~4.0.0"},"homepage":"https://github.com/rvagg/jsonist","devDependencies":{"after":"~0.8.1","faucet":"~0.0.1","tape":"~3.5.0"},"gitHead":"ff44bfc649301ce46c16870a6c70005c0673277e","_id":"jsonist@1.2.0","_shasum":"da7555a5da1002d53ba30c3f0e05a2808fb82f34","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":""}],"dist":{"shasum":"da7555a5da1002d53ba30c3f0e05a2808fb82f34","size":5755,"noattachment":false,"key":"/jsonist/-/jsonist-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonist/download/jsonist-1.2.0.tgz"},"directories":{},"publish_time":1439810369564,"_cnpm_publish_time":1439810369564,"_hasShrinkwrap":false},"1.1.0":{"name":"jsonist","version":"1.1.0","description":"A simple wrapper around for dealing with JSON web APIs","main":"jsonist.js","scripts":{"test":"node test.js | faucet"},"repository":{"type":"git","url":"git+https://github.com/rvagg/jsonist.git"},"keywords":["http","hyperquest","json","hungry hungry http hippo!"],"author":{"name":"Rod Vagg","email":"r@va.gg"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/jsonist/issues"},"dependencies":{"bl":"~0.9.4","hyperquest":"~1.2.0","json-stringify-safe":"~5.0.0"},"homepage":"https://github.com/rvagg/jsonist","devDependencies":{"faucet":"0.0.1","tape":"~3.5.0","xtend":"~4.0.0"},"gitHead":"1a61da0feec6054f3d1a6920995c24dee3091795","_id":"jsonist@1.1.0","_shasum":"61d6e2428cce59d6d36394b48f95929927903eab","_from":".","_npmVersion":"2.11.3","_nodeVersion":"2.3.2-nightly20150625dcbb9e1da6","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":""}],"dist":{"shasum":"61d6e2428cce59d6d36394b48f95929927903eab","size":4939,"noattachment":false,"key":"/jsonist/-/jsonist-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonist/download/jsonist-1.1.0.tgz"},"directories":{},"publish_time":1435372283631,"_cnpm_publish_time":1435372283631,"_hasShrinkwrap":false},"1.0.2":{"name":"jsonist","version":"1.0.2","description":"A simple wrapper around for dealing with JSON web APIs","main":"jsonist.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/rvagg/jsonist.git"},"keywords":["http","hyperquest","json","hungry hungry http hippo!"],"author":{"name":"Rod Vagg","email":"r@va.gg"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/jsonist/issues"},"dependencies":{"bl":"~0.9.4","hyperquest":"~1.2.0","json-stringify-safe":"~5.0.0"},"homepage":"https://github.com/rvagg/jsonist","devDependencies":{"tape":"~3.5.0","xtend":"~4.0.0"},"gitHead":"1ce3fa50b3760de2e15e566db6f3ad13ddbc859e","_id":"jsonist@1.0.2","_shasum":"e52efad86a62055170503a17729bc07ed41c2004","_from":".","_npmVersion":"2.7.1","_nodeVersion":"2.0.0-next-nightly2015041138225a7203","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":""}],"dist":{"shasum":"e52efad86a62055170503a17729bc07ed41c2004","size":4603,"noattachment":false,"key":"/jsonist/-/jsonist-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonist/download/jsonist-1.0.2.tgz"},"directories":{},"publish_time":1429612149322,"_cnpm_publish_time":1429612149322,"_hasShrinkwrap":false},"1.0.1":{"name":"jsonist","version":"1.0.1","description":"A simple wrapper around for dealing with JSON web APIs","main":"jsonist.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/rvagg/jsonist.git"},"keywords":["http","hyperquest","json","hungry hungry http hippo!"],"author":{"name":"Rod Vagg","email":"r@va.gg"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/jsonist/issues"},"dependencies":{"bl":"~0.9.4","hyperquest":"~1.2.0","json-stringify-safe":"~5.0.0"},"homepage":"https://github.com/rvagg/jsonist","devDependencies":{"tape":"~3.5.0","xtend":"~4.0.0"},"gitHead":"7181e8c7ce216294154bf7dd7e45b49463399414","_id":"jsonist@1.0.1","_shasum":"235e8b7bcb6e51b840d74557fa47cdb01c3264c1","_from":".","_npmVersion":"2.7.5","_nodeVersion":"1.6.4","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":""}],"dist":{"shasum":"235e8b7bcb6e51b840d74557fa47cdb01c3264c1","size":4609,"noattachment":false,"key":"/jsonist/-/jsonist-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonist/download/jsonist-1.0.1.tgz"},"directories":{},"publish_time":1428993123968,"_cnpm_publish_time":1428993123968,"_hasShrinkwrap":false},"1.0.0":{"name":"jsonist","version":"1.0.0","description":"A simple wrapper around for dealing with JSON web APIs","main":"jsonist.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/rvagg/jsonist.git"},"keywords":["http","hyperquest","json","hungry hungry http hippo!"],"author":{"name":"Rod Vagg","email":"r@va.gg"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/jsonist/issues"},"dependencies":{"bl":"~0.9.4","hyperquest":"~1.0.1","json-stringify-safe":"~5.0.0"},"homepage":"https://github.com/rvagg/jsonist","devDependencies":{"tape":"~3.5.0","xtend":"~4.0.0"},"gitHead":"c61771df337bbfe547ad0af4feb3aede546d01ce","_id":"jsonist@1.0.0","_shasum":"b8062e30dd741b026bd0f0290951f29b05e3d07f","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.2.0","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":""}],"dist":{"shasum":"b8062e30dd741b026bd0f0290951f29b05e3d07f","size":4607,"noattachment":false,"key":"/jsonist/-/jsonist-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonist/download/jsonist-1.0.0.tgz"},"directories":{},"publish_time":1424051399067,"_cnpm_publish_time":1424051399067,"_hasShrinkwrap":false},"0.1.1":{"name":"jsonist","version":"0.1.1","description":"A simple wrapper around for dealing with JSON web APIs","main":"jsonist.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/rvagg/jsonist.git"},"keywords":["http","hyperquest","json","hungry hungry http hippo!"],"author":{"name":"Rod Vagg","email":"r@va.gg"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/jsonist/issues"},"dependencies":{"bl":"^0.7.0","json-stringify-safe":"~5.0.0","hyperquest":"~0.3.0"},"homepage":"https://github.com/rvagg/jsonist","devDependencies":{"tape":"~2.4.2","xtend":"~2.1.2"},"_id":"jsonist@0.1.1","_shasum":"8e57937d5c8244bd6e535eb01cb8a3b1522da9ed","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":""}],"dist":{"shasum":"8e57937d5c8244bd6e535eb01cb8a3b1522da9ed","size":4581,"noattachment":false,"key":"/jsonist/-/jsonist-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonist/download/jsonist-0.1.1.tgz"},"directories":{},"publish_time":1399798716072,"_cnpm_publish_time":1399798716072,"_hasShrinkwrap":false},"0.1.0":{"name":"jsonist","version":"0.1.0","description":"A simple wrapper around for dealing with JSON web APIs","main":"jsonist.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/rvagg/jsonist.git"},"keywords":["http","hyperquest","json","hungry hungry http hippo!"],"author":{"name":"Rod Vagg","email":"r@va.gg"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/jsonist/issues"},"peerDependencies":{"hyperquest":"^0.2.0"},"dependencies":{"bl":"^0.7.0","json-stringify-safe":"~5.0.0"},"homepage":"https://github.com/rvagg/jsonist","devDependencies":{"tape":"^2.4.2","xtend":"^2.1.2","hyperquest":"^0.2.0"},"_id":"jsonist@0.1.0","dist":{"shasum":"4f8bf60d1bc136e9fc6c6fdb1f1ccd1a90404d30","size":4583,"noattachment":false,"key":"/jsonist/-/jsonist-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonist/download/jsonist-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":""}],"directories":{},"publish_time":1393193800306,"_cnpm_publish_time":1393193800306,"_hasShrinkwrap":false},"0.0.1":{"name":"jsonist","version":"0.0.1","description":"A simple wrapper around for dealing with JSON web APIs","main":"jsonist.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/rvagg/jsonist.git"},"keywords":["http","hyperquest","json","hungry hungry http hippo!"],"author":{"name":"Rod Vagg","email":"r@va.gg"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/jsonist/issues"},"peerDependencies":{"hyperquest":"^0.2.0"},"dependencies":{"bl":"^0.7.0","json-stringify-safe":"~5.0.0"},"homepage":"https://github.com/rvagg/jsonist","devDependencies":{"tape":"^2.4.2","xtend":"^2.1.2","hyperquest":"^0.2.0"},"_id":"jsonist@0.0.1","dist":{"shasum":"0f038db9825d577977ce9a903f2f7e2ee0b924bd","size":4352,"noattachment":false,"key":"/jsonist/-/jsonist-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonist/download/jsonist-0.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":""}],"directories":{},"publish_time":1393176738636,"_cnpm_publish_time":1393176738636,"_hasShrinkwrap":false},"0.0.0":{"name":"jsonist","version":"0.0.0","description":"A simple wrapper around for dealing with JSON web APIs","main":"jsonist.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/rvagg/jsonist.git"},"keywords":["http","hyperquest","json","hungry hungry http hippo!"],"author":{"name":"Rod Vagg","email":"r@va.gg"},"license":"MIT","bugs":{"url":"https://github.com/rvagg/jsonist/issues"},"peerDependencies":{"hyperquest":"^0.2.0"},"dependencies":{"bl":"^0.7.0","json-stringify-safe":"~5.0.0"},"homepage":"https://github.com/rvagg/jsonist","devDependencies":{"tape":"^2.4.2","xtend":"^2.1.2","hyperquest":"^0.2.0"},"_id":"jsonist@0.0.0","dist":{"shasum":"b1ae7525fac57e68c1754bc512e334cbf631aaaf","size":4173,"noattachment":false,"key":"/jsonist/-/jsonist-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jsonist/download/jsonist-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":""}],"directories":{},"publish_time":1393144638461,"_cnpm_publish_time":1393144638461,"_hasShrinkwrap":false}},"readme":"# jsonist\n\n[![Build Status](https://api.travis-ci.org/rvagg/jsonist.svg?branch=master)](http://travis-ci.org/rvagg/jsonist)\n\n**A super-simple HTTP fetch utility for JSON APIs**\n\n[![NPM](https://nodei.co/npm/jsonist.svg)](https://nodei.co/npm/jsonist/)\n\n* [Example](#example)\n* [API](#api)\n  * [jsonist.get(url[, options ][, callback ])](#jsonistgeturl-options--callback-)\n  * [jsonist.post(url, data[, options ][, callback ])](#jsonistposturl-data-options--callback-)\n  * [jsonist.put(url, data[, options ][, callback ])](#jsonistputurl-data-options--callback-)\n  * [jsonist.delete(url[, options ][, callback ])](#jsonistdeleteurl-options--callback-)\n* [Error handling and bad JSON responses](#error-handling-and-bad-json-responses)\n* [License & copyright](#license--copyright)\n\n## Example\n\nA simple GET:\n\n```js\nconst url  = 'https://api.github.com/users/rvagg'\nconst opts = { headers: { 'user-agent': 'wascally wabbit' } }\n\nconst { data } = await jsonist.get(url, opts)\n\nconsole.log(`${data.name} (@${data.login}) is: ${data.bio}`)\n\n// → Rod Vagg (@rvagg) is: Awk Ninja; Yak Shaving Rock Star\n```\n\nor a POST:\n\n```js\nconst url  = 'https://api.github.com/repos/rvagg/jsonist/issues'\nconst opts = {\n  headers: { 'user-agent': 'yee haw grandma' },\n  auth: 'rvagg:24d5dee258c64aef38a66c0c5eca459c379901c2'\n}\nconst data = {\n  'title': 'Not a bug'\n  'body': 'Just guinea-pigging your repo, don\\'t get so uptight.'\n}\nconst { data } = await jsonist.post(url, data, opts, fn)\nconsole.log(data)\n\n// → { url: 'https://api.github.com/repos/rvagg/jsonist/issues/1',\n//   ...\n//   }\n\n// you can also jsonist.put(), the kids love PUT requests these days\n```\n\nYou can use the `Promise` API for async / await, or steer clear entirely of Promises and provide a `callback` argument (in which case there won't be any `Promise` in your stack to ruin your error handling).\n\n**jsonist** uses [hyperquest](https://github.com/substack/hyperquest) under the hood, `options` for the API below where present are passed on to hyperquest.\n\n## API\n\n### jsonist.get(url[, options ][, callback ])\n\nSends a GET request to `url` and returns (via `callback` if supplied or a returned `Promise` if not) an error or JSON deserialised data.\n\nThe `options` object is optional and is passed on to hyperquest where present:\n\n* `followRedirects` (default `false`): if truthy, jsonist will follow HTTP redirects to new locations, up to a maximum of `10` times. Set `followRedirects` to an integer to change the maximum number of redirects to follow.\n* `hyperquest`: if provided, will be used in place of the bare hyperquest package. This can be used to customise the HTTP chain with a hyperquest wrapper, such as those at [github.com/hyperquest](https://github.com/hyperquest). Use with caution.\n\nOptions understood by hyperquest include:\n\n* `headers` (default `{}`, in addition, jsonist will set `content-type` to `'application/json'` and `accept` to `'application/json'`): any additional headers required for the request.\n* `auth` (default `undefined`): set automatically when the `url` has an auth string in it such as \"http://user:passwd@host\". Set to a string of the form `\"user:pass\"` where auth is required.\n* `agent` (default `false`): can be set to a custom [`http.Agent`](https://nodejs.org/api/http.html#http_class_http_agent).\n* `timeout` (default `2`<sup>`32`</sup>` * 1000`): set on the underlying `request.setTimeout()`.\n* `localAddress`: the local interface to bind for network connections when issuing the request.\n\nFor HTTPS connections, the following options are passed on to [`tls.connect()`](https://nodejs.org/api/tls.html#tls_tls_connect_options_callback):\n\n* `pfx`\n* `key`\n* `cert`\n* `ca`\n* `ciphers`\n* `rejectUnauthorized`\n* `secureProtocol`\n\nIf a `callback` is supplied, it will be called with up to 3 arguments. If there is an error there will only be an error argument in the first position, otherwise it will be `null`. The second argument will contain the deserialised object obtained from the server and the third argument will be the response object itself if you need to fetch headers or other metadata.\n\nWhen a `callback` is supplied, `jsonist.get()` will immediately return the underlying hyperquest stream for this request. Can be safely ignored in most circumstances. This is not available on the non-callback version.\n\nIf no `callback` is supplied, a `Promise` is returned directly, allowing for `await`. If the `Promise` resolves, it will receive an object with a `data` property containing the deserialised object obtained from the server, and a `response` property containing the response object itself if you need to fetch headers or other metadata. These two properties can be destructured with `const { data, response } = await jsonist.get(...)`.\n\n### jsonist.post(url, data[, options ][, callback ])\n\nSends a POST request to `url`, writing JSON serialised data to the request, and returns (via `callback` if supplied or a returned `Promise` if not) an error or JSON deserialised data (if any).\n\n`'method'` is set to `'POST'` for you before passing on to hyperquest.\n\nThe `data` parameter can also be a readable stream that will get `.pipe()`'d to the request.\n\nSee [`jsonist.get()`](#jsonistgeturl-options--callback-) for more details on options and the behaviour when passing a `callback` or using the `Promise` version.\n\n### jsonist.put(url, data[, options ][, callback ])\n\nSame as  `jsonist.post()` but for when that extra character is too much to type or you have to use someone's overloaded API. `'method'` is set to `'PUT'`.\n\nSee [`jsonist.get()`](#jsonistgeturl-options--callback-) for more details on options and the behaviour when passing a `callback` or using the `Promise` version.\n\n### jsonist.delete(url[, options ][, callback ])\n\nSends a DELETE request to `url` and returns (via `callback` if supplied or a returned `Promise` if not) an error or JSON deserialised data.\n\nOtherwise works the same as GET.\n\nSee [`jsonist.get()`](#jsonistgeturl-options--callback-) for more details on options and the behaviour when passing a `callback` or using the `Promise` version.\n\n## Error handling and bad JSON responses\n\nServer errors (i.e. response codes >= 300) are handled as standard responses. You can get the status code from the response object which is the third argument to the standard callback if you need to handle error responses in a different way.\n\nHowever, if any type of response returns data that is not JSON format, an error will be generated and passed as the first argument on the callback, with the following customisations:\n\n* If the status code from the server is >= 300, you will receive an error of type `jsonist.HttpError`, otherwise it will be of type `SyntaxError` indicating a bad JSON parse on a normal response.\n* The error will come with the following additional properties attached:\n  - `data`: a `Buffer` containing the full response from the server\n  - `response`: the full HTTP response object\n  - `statusCode`: the status code received from the server (a short-cut to `response.statusCode`)\n\n## License & copyright\n\n**jsonist** is Copyright (c) 2014 Rod Vagg [@rvagg](https://github.com/rvagg) and licensed under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.\n","_attachments":{},"homepage":"https://github.com/rvagg/jsonist","bugs":{"url":"https://github.com/rvagg/jsonist/issues"},"license":"MIT"}