{"_id":"rest-promise","_rev":"26-eca8385e2e014cb920ef003885b07403","name":"rest-promise","description":"Promise wrapper arround request library with rest style builder methods","dist-tags":{"latest":"1.5.1"},"versions":{"1.0.0":{"name":"rest-promise","version":"1.0.0","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.69.0"},"gitHead":"d85c8a71f828e87cdc106a3a937fc688b288155d","_id":"rest-promise@1.0.0","_shasum":"dcb0e4c1bc887cc359af021b9a445e6628365bc6","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"dcb0e4c1bc887cc359af021b9a445e6628365bc6","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.0.0.tgz","integrity":"sha512-AzCL1fCV1SKXY5nz5pUl096lfGI5kjRwAbjMehH/sOghq4BlVVtl4QYMGxbZgrOiJpf1cgv4aXm6ENnM3VQ7iA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICn7fBFDGG0cFrPcpvoOlMt8sRsR68I5g43DN9Wjf05qAiEAsTPe8Rjopiq39GZc5dqhXmY06aiF1yogKLUBNFtj7GQ="}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/rest-promise-1.0.0.tgz_1454951715032_0.5532573296222836"},"directories":{}},"1.0.1":{"name":"rest-promise","version":"1.0.1","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.69.0"},"gitHead":"bc7ac47c74a1029e5b5ff1c7632d63cca5584400","_id":"rest-promise@1.0.1","_shasum":"9d183683a564aff3948f3dcacb31806023aad222","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"9d183683a564aff3948f3dcacb31806023aad222","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.0.1.tgz","integrity":"sha512-RpcadS0+4X1zTz7B9paZZ5DmZIZuwSkJch2h2wur4p8HrVh5gIoPqOFx8dig0T+15wh7IewIxye3yf3X/hvG9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7XNF9PUiobOIMJoccBW77szXzicPvimBW0l0cpXiWMAIhAPdS4h+a57KOsl9TtORJvW53HoFYHe8LpQVif8GMqfcd"}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/rest-promise-1.0.1.tgz_1454952147030_0.7976410107221454"},"directories":{}},"1.1.0":{"name":"rest-promise","version":"1.1.0","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.69.0"},"gitHead":"781e04d82188fffff51ed1a32b6ad5da8c3cd8c4","_id":"rest-promise@1.1.0","_shasum":"373a632d749498a06fe0f9c068c37c70ef2f2f42","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"373a632d749498a06fe0f9c068c37c70ef2f2f42","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.1.0.tgz","integrity":"sha512-A7+1Glw4o/D7Fnmyhn8J/s58rqBBEH4matPywD96QW8dawLbhsEfgGHswE0fkS/+WgpcNfa6+rsJFgZl26Se+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGcT+7Lhld4HuoSBZgmA+ZYPiBk6C8YZ9TCSghJ87eOwIgdwDbz6JE7KAoRg1NuMP2VEW+2gNDZL8KsDen0rQB7WY="}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/rest-promise-1.1.0.tgz_1455122502877_0.9707394568249583"},"directories":{}},"1.1.1":{"name":"rest-promise","version":"1.1.1","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.69.0"},"gitHead":"b641b9fc31576be684c714be8e3ac7e84d96916b","_id":"rest-promise@1.1.1","_shasum":"e4cefb0ea4abfc2e35b80c9103302b4eaceccf4e","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"e4cefb0ea4abfc2e35b80c9103302b4eaceccf4e","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.1.1.tgz","integrity":"sha512-82W4u+vVNSyjtZYi8Y+MsrTGNgpZunXLfk20kvbf8HDHJWtzqjOXoRhsu3VM4ZRdVKXJqLtcKtn+K54VjjTjPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+S1r07tvwgoH6jkzNQ1DGbXs05qaE4WPnnOUZ16qJAwIgAtgKB7kdZnZdvHUdWQ6/CzqxEod+6EzKkTZKOsWmfxQ="}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/rest-promise-1.1.1.tgz_1458224040502_0.30762907094322145"},"directories":{}},"1.1.2":{"name":"rest-promise","version":"1.1.2","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.69.0"},"gitHead":"1064e4a3ffd2800121e77b659c22f565ed6bbb76","_id":"rest-promise@1.1.2","_shasum":"19ef389b0c956b33faea321b69180c87e8ec59e3","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"19ef389b0c956b33faea321b69180c87e8ec59e3","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.1.2.tgz","integrity":"sha512-RB5FNGQMH5VTurE4WWXUz/ScsxTdtFNRkluJ0xWmyCzThb3u2664WMDc/8/U/i+KZTH2+Y311/xlCRowX5ciKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICfIvxEixIWbrXmuYruUHyge/PiqpwPTDVvjFzwLXqOyAiBa5Ivo6itFm+aoxUmU3KD7Dq6NtHsWiCcFX7WpMnTP1w=="}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/rest-promise-1.1.2.tgz_1458254725221_0.5948187508620322"},"directories":{}},"1.1.3":{"name":"rest-promise","version":"1.1.3","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.69.0"},"gitHead":"227382811cb73e7d148a6fa49b1a578c5c30cb15","_id":"rest-promise@1.1.3","_shasum":"639d08cd6620927e5b7efdf73c61c70f370171ab","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"639d08cd6620927e5b7efdf73c61c70f370171ab","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.1.3.tgz","integrity":"sha512-OtwnXs7qAqx+hlKkZgIx/wrzpd0iGkOZDNt7pM0FEouXIk4L5HbD9i0gNN7WVL0mFd5V0HVk7OvAWjksLggOKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBZQtyGATxRc4yhRtQ4EoVombIVa5cB5ZKOdC61si152AiA6lCeiU5+CTApdHYy8pRyailLWpTWJq7yBX+nbPE07vw=="}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/rest-promise-1.1.3.tgz_1458307127802_0.7908262084238231"},"directories":{}},"1.2.0":{"name":"rest-promise","version":"1.2.0","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.69.0"},"gitHead":"8c62c4f43fefecf71531172bae5b4989cc6c5343","_id":"rest-promise@1.2.0","_shasum":"8816f12a5b1693d68c8454c7099faaf944464bee","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"8816f12a5b1693d68c8454c7099faaf944464bee","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.2.0.tgz","integrity":"sha512-cYlPhPftXzWljheHgtf/m/kITGUyhUPG1gwBFHomBwYPXVb+tAeig42loeopbbXYHSFpTaDbSemyJGFhc5hCtw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+H65zRvIS2nallAzI9xsHUgT+ybFr/suiDwroAt1sAQIgIQKSs9VWS5NAYtlleeoyz6+LygxOiviF/ev+OTsT6HY="}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/rest-promise-1.2.0.tgz_1458786734365_0.9027921266388148"},"directories":{}},"1.2.1":{"name":"rest-promise","version":"1.2.1","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.69.0"},"gitHead":"7eaa289cb426c2fdb0f3020c39b66e3ab0e09597","_id":"rest-promise@1.2.1","_shasum":"e69ab04ce1262e52af75467f0eb78925129b0290","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"e69ab04ce1262e52af75467f0eb78925129b0290","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.2.1.tgz","integrity":"sha512-DQ3QZAc3jPiXOpnIiPAhe+CeljLmbQDjXW4VEQ6pCA24EPQiixIR9/pZU87Vpp2oqieN+i62BfRaWUwgbnGfJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDX1R9YXcfrCnLWtmqCR8/SXV9HV29uEfBM/EVjjQmAZQIgRdxdjsMR9YZ+4L6YdKUFpohIQlKeMT02FzfsamJ+fO8="}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rest-promise-1.2.1.tgz_1458813512787_0.38739087083376944"},"directories":{}},"1.2.2":{"name":"rest-promise","version":"1.2.2","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.69.0"},"gitHead":"3b71643fd9c40d41f08431ee9d8fcb880d8fc026","_id":"rest-promise@1.2.2","_shasum":"58e378ac8d2a4698cd8383d2a39318ba63275414","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"58e378ac8d2a4698cd8383d2a39318ba63275414","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.2.2.tgz","integrity":"sha512-E4cNpsyddZYBQGIGnnVSXJMQvV1cPIWTtYIVfCo2enxg1EQFzMB3xJSt43pzb93RbelaxYIAMh/KGHCB8PyICw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaqNpvJduEh2PDINtjHj6ezFRiVYwhlBsMTwct/gMg7AIgb0W8R52E7Sewod1ZCnAxg4MQNMazQjAYeHOMOLSPlzk="}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/rest-promise-1.2.2.tgz_1459409184712_0.7663978412747383"},"directories":{}},"1.2.3":{"name":"rest-promise","version":"1.2.3","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.69.0"},"gitHead":"f9f4a03c1ecc7d8a9413eee39275bdec41ef1680","_id":"rest-promise@1.2.3","_shasum":"eab1e810049d64684e1822d7ee586fd6f833fc5d","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"eab1e810049d64684e1822d7ee586fd6f833fc5d","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.2.3.tgz","integrity":"sha512-VL54NYj06WChfGnPBjCdC+tdGu936BmuLFb512b0l10rx2+Lf1Biy+1mc2PkwkahhH/Iu8Xuo+qfrI37vNuP/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICtxtvDuNRxYcgzwDZ/irIYr96ms7847iNB22jKMxQUsAiAkaS4rMOjlXxobcc1lmpjtGd3RjnULvFruNxQsmBKrZw=="}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/rest-promise-1.2.3.tgz_1461096898060_0.826076116412878"},"directories":{}},"1.2.4":{"name":"rest-promise","version":"1.2.4","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.69.0"},"gitHead":"6b2e4bbd2da85445d5b000a34aff432de697bc76","_id":"rest-promise@1.2.4","_shasum":"c0fb8834ef843547150e0de61587d3c73a2b717f","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"c0fb8834ef843547150e0de61587d3c73a2b717f","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.2.4.tgz","integrity":"sha512-Xnv6o7toycrNKM3rTpuYnxTFQy6oAJTLlgFFqHkf2KtnwWJqvcwLPhFrQUCsAOPlGcz8udApb6owQ7qnXjmkVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCH1jXqkk/CMHvaLX0+Z2aaMO1dyvYTpvHE519zQK4I0MCIH3sv+X+Ns9qIup08YunlSsZl7Ta4fwgUAX/YCa03Hlc"}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rest-promise-1.2.4.tgz_1461922721083_0.5725362279918045"},"directories":{}},"1.3.1":{"name":"rest-promise","version":"1.3.1","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.72.0"},"gitHead":"2d80453fa61d174d60818237767ce90420487a1c","_id":"rest-promise@1.3.1","_shasum":"03d8525cc989c2986276b3eaa66832a87df61747","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"03d8525cc989c2986276b3eaa66832a87df61747","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.3.1.tgz","integrity":"sha512-uy6Oo2Zo7IGPY4SJistn6L+1madyhh7xc4f7d+3gXVAUitPIGkPERA7UqueyAPQ9bjWioe8sd4KpkE+qcE4J3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID6hVXagAW8yTeOFustEVPSAGTTPYj1che6WotQ5ldKpAiEAkY0cXJpaGP4EDUwpG9LnDWebCNjxX6bw2sSiYDRtvJA="}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rest-promise-1.3.1.tgz_1467292943472_0.5466590384021401"},"directories":{}},"1.3.2":{"name":"rest-promise","version":"1.3.2","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.72.0"},"gitHead":"7a6e154e4610dadf2df73c1a3b5f1c97efab522a","_id":"rest-promise@1.3.2","_shasum":"9dc37c1b6fbdec67fcc3a859bd044df4b97e4a8f","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"9dc37c1b6fbdec67fcc3a859bd044df4b97e4a8f","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.3.2.tgz","integrity":"sha512-FoPDePBdxy6rndEmoQ/QgpO+JwkMvF4aIiLInJlzn3B9IVoEjq61qvr/iI2Ar7icbOSrtWOrcH4C2nzsg7CGvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFiRj7agJRg3tb0xpuBThfJFeiNahX+HMNNliQtnyEvWAiBJSdnyHcehF9IzMdgxKmNX4Zoa1FyTlB9nr4GL2BC7bw=="}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/rest-promise-1.3.2.tgz_1467295472808_0.06553073390386999"},"directories":{}},"1.3.3":{"name":"rest-promise","version":"1.3.3","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.72.0"},"gitHead":"f8d5b6ec5b9928b34082f238881a0b16eded4d24","_id":"rest-promise@1.3.3","_shasum":"74e373b12b1c1236256811a0ea610f1a566a4514","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"74e373b12b1c1236256811a0ea610f1a566a4514","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.3.3.tgz","integrity":"sha512-hYbOOeh5q7pwsGk1bQBLr9D+Iq9Z8vVL5lJLpjnr/6w00TLZUdqCOwMq5IVN8U1XExgD0y7MIWtZ94GwKj3sSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQKXBQAXvxx80hV/2Dy+0rsIyYTEZEzTCsX0aqrG+Y6wIgRzoQVXxLP+DQjew2ZovFy/cb8z37xA4O1obZ2IGs6Sg="}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/rest-promise-1.3.3.tgz_1467590697032_0.26369540486484766"},"directories":{}},"1.4.0":{"name":"rest-promise","version":"1.4.0","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.72.0"},"gitHead":"a71ee9d1480e15816b6fc6d9ecfae35c174ed704","_id":"rest-promise@1.4.0","_shasum":"17e4a3d026cb633a768291e3e0f1f5d551a6b3de","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"17e4a3d026cb633a768291e3e0f1f5d551a6b3de","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.4.0.tgz","integrity":"sha512-4MA1QNqC8UIzZ3BoG8tIqNZqn41mty5ow/IPIpC81y7SbPGBb564MoQvJxQat+GEjk0xeklssROxej0WuVUgjw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2cHuOwY+HcMpxp+KkyihMowJRwbr138TWlWqzb/8WLgIhAJNJUYI5PVqpLVa1GnkyXoYwK45/2sDO+YkRmBu1BhdJ"}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rest-promise-1.4.0.tgz_1467988651562_0.5892213396728039"},"directories":{}},"1.4.1":{"name":"rest-promise","version":"1.4.1","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.72.0"},"gitHead":"a34ce21773609f2f81b754d35a3c21817d5e82f2","_id":"rest-promise@1.4.1","_shasum":"405762ee4b8310613ee557890b239d28546bb394","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"405762ee4b8310613ee557890b239d28546bb394","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.4.1.tgz","integrity":"sha512-4AdxK9tzCi76jeZBNPp1CebnVzZlJQS4Pt/O9grEs+txp0XiAxWwdu6jD96l9rfVDCWwRKGVhZh4+Dwr1SmkYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQ+2ZZ2CSKhK2hnYdcL+eZ+sfrFcqzm6QmqpfE9ZXbQAIgO1FNvi8i4v3oT/BgTNk/ShetH+s20vd+cxUx9D0r6XE="}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/rest-promise-1.4.1.tgz_1468231614942_0.010445194318890572"},"directories":{}},"1.4.2":{"name":"rest-promise","version":"1.4.2","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.73.0"},"gitHead":"d992a5d891c4f82c41d4205f33a88a48ef07f003","_id":"rest-promise@1.4.2","_shasum":"5869ecc3d4b0dfb5ad83adfdf0a071d3c97453ea","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"5869ecc3d4b0dfb5ad83adfdf0a071d3c97453ea","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.4.2.tgz","integrity":"sha512-8t4OTNJxcWG1p6q1Hfl23+5WVjPcOKlD2Rl75rVtmCuv17V1ltr6BcFvbKOQtHMJ6tNJjl45+00mNKsX6erSOw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBUBFc7QL7svI289lE4pF6oHsT30q+WMSGFQvmR32XIHAiEAglwfuFGqqmUZXTNHHAB2RhsZLsRUHhaQu8ffgfGjHFc="}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rest-promise-1.4.2.tgz_1468550947450_0.32577615953050554"},"directories":{}},"1.4.3":{"name":"rest-promise","version":"1.4.3","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.73.0"},"gitHead":"098c1cec99915d6d820845ce9c53b88598823fd9","_id":"rest-promise@1.4.3","_shasum":"40e3e19b3d375071a3d5d12adc32ae64aa695501","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"40e3e19b3d375071a3d5d12adc32ae64aa695501","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.4.3.tgz","integrity":"sha512-r1Qg3V8tOiX8qkAof5jQF8TdwwMKaIN4ZFJuhzBFb7vJ2g8wm0cmo7BGzeKqpGKHangc9XksUOyU6z8sXpO5rA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCE/gWPy05OgMiX5rXWTBuui6x2Ujj8DyLWeRrs8cZFxwIhAL9sLt8OTu4tL1wnHw0pP6bXVjOKUYNxMODpNdkkl4U5"}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rest-promise-1.4.3.tgz_1478099118401_0.6183112559374422"},"directories":{}},"1.4.4":{"name":"rest-promise","version":"1.4.4","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.73.0"},"gitHead":"1658b732e6ab7b0676c5bcb2de5e229eb7ded530","_id":"rest-promise@1.4.4","_shasum":"7c010ea1a81f17b348dfd095c17abe5996de0c8e","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"7c010ea1a81f17b348dfd095c17abe5996de0c8e","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.4.4.tgz","integrity":"sha512-ANhocAKMlF3snUGqV3kJ8YOex3YPcfF5fMksMMJbVqc/TWjIsidHKPj/hvh+6Uk8aQKLGgd1rStaFHFgNEgRqw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2EB//3mbqezu3nwQClWcDqfM98dunV6ZMMe3P8GwwqgIgSGv+xR2ak0FOxO0pzDpyV3e2TgocZYYQLLOuxnCGEFo="}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rest-promise-1.4.4.tgz_1480675803758_0.6174058846663684"},"directories":{}},"1.4.5":{"name":"rest-promise","version":"1.4.5","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.73.0"},"gitHead":"03bb6d9078499292f71d5c09d56e0af22b20bc28","_id":"rest-promise@1.4.5","_shasum":"89013274f3c1c543006eea494dd3e025a9209fe0","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"89013274f3c1c543006eea494dd3e025a9209fe0","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.4.5.tgz","integrity":"sha512-EBgcBJ4kEnu3OyK8QL1uKx4Awt+kQHuESTiHx+zujEoaMJeO2EAgqkwYo42G508JnHv+TxJ4yCJDCjzDKZLGxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/wD52CYxIwIBHO3qPXGRyjcqBTKion5Us0qISJgwnfwIgPxXbZRTAIa8bCOEuM4O8kX4o7M2uHI2mztTCaOKK8/k="}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rest-promise-1.4.5.tgz_1481120094417_0.8217141747009009"},"directories":{}},"1.4.6":{"name":"rest-promise","version":"1.4.6","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.73.0"},"gitHead":"93ab96299cc134353a76c11486c51c1cc98524f5","_id":"rest-promise@1.4.6","_shasum":"afe1a17aca365fda5dad7951247cd595b18ae7f4","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"afe1a17aca365fda5dad7951247cd595b18ae7f4","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.4.6.tgz","integrity":"sha512-IoYDYLA/IM86jdHqZbCEx+zAHKQVPokIinSwHTWbNMSkFSPimlus8H1jLar9Bc05BmARqMAeq4c+ybyYH5ZGVQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICgTva5aQzH/KXKCDX/uWUQYI3z9LRbqxltt0v9QddFQAiEAhEzTzDSgWHKOO/S7Nd+DgIWSmgquVq2vEsHUsCGgPYo="}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rest-promise-1.4.6.tgz_1495531207069_0.3068485246039927"},"directories":{}},"1.5.0":{"name":"rest-promise","version":"1.5.0","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.73.0"},"gitHead":"93ab96299cc134353a76c11486c51c1cc98524f5","_id":"rest-promise@1.5.0","_shasum":"1b1e466bca83e0e0e60050e2db9f4fc446a9fed0","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"1b1e466bca83e0e0e60050e2db9f4fc446a9fed0","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.5.0.tgz","fileCount":5,"unpackedSize":10776,"integrity":"sha512-70SzNAYIxz+jFeq97Niih2nRzpWEw0qDVv5kKLQy82HDLUYeUI3H+MCKfUKLihRU3VF1JXBmW2Y9TOUR1GYvPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRLaQxevYy7toXyNRUiQyEuDt8vTz9Dx5ZAiSzv672UAIhANnCdttEpP7rckN7uxc5Q6xVQWXAvJAyAl4dca+hBQdf"}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rest-promise_1.5.0_1522714348100_0.1160514749538899"},"_hasShrinkwrap":false},"1.5.1":{"name":"rest-promise","version":"1.5.1","description":"Promise wrapper arround request library with rest style builder methods","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"keywords":["rest","request","promise","http"],"engines":{"node":">4.0.0"},"author":{"name":"dragan.bencic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"homepage":"https://github.com/dbencic/rest-promise#readme","dependencies":{"request":"^2.73.0"},"gitHead":"93ab96299cc134353a76c11486c51c1cc98524f5","_id":"rest-promise@1.5.1","_shasum":"3c3f1d20cb27bfe4f91f2d124e80e9eaf58afe37","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"dbencic","email":"dragan.bencic@gmail.com"},"dist":{"shasum":"3c3f1d20cb27bfe4f91f2d124e80e9eaf58afe37","tarball":"https://registry.npmjs.org/rest-promise/-/rest-promise-1.5.1.tgz","fileCount":5,"unpackedSize":11012,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa8UwFCRA9TVsSAnZWagAAaAEP/0azHWiEunp4YgbNcO/7\n+kElonewepwPbe2y6qY7zJV1SDOpdC/3MSaYGgcVRgjonXRejDL1DWXaDFQS\nO3n4kRcpwnCrtehDcRo9Kgja7g/WvbkuigzcxmJPB9bdw0dI6yspr+8BpxlH\nw0GwGpCnqXmEd3sC1Y9+rwq+LtiGJpFCoOS3cfnTa7ezUSIDYeg+rT5/8tlu\nQ7sEfEGj+kTBK0RulN2EYwxO7Y7GFhuk8DgtvU+h1mqwPQuxoGWvvNIN1PmA\nbFkqLtEteDuqzeblwPLAhLSt4nqoGx0nJFyK7YNqbk9rxAC0MVs1SsxvVKIr\nTEnDrLnUoDWffr6cSx8qgX3iBMUzONpcrtOBo6KMuBgqgOCgM61UgNGKBtdt\nddj+7p3oebUs2fF7R6NUiyclmYdgq3o3gNodZYCi+l7zZTUX9Y3hWznlnaQA\nxY+n1jcT71fw7o8XDYzU0eELKNS995tA09xNrPcXL3Agu0qUHaobMme9tl4D\neh1Mylzo1fKgcX7puUMauPXZ7BZx5o8uNlO2WdlChv/eDRU2UEt/TPrCGpd7\nCj4rxRhRbFYKt0z1lxZ+ghaNmHEYKMUhnZ3XtcdrUbwdsvkESzpBciOhO99g\nLelSki7mBcEMjT8as/28JPq+IHlyES7bpT6blhRWTErZiyHnmrnh7t/iFx6s\nYK0T\r\n=jUli\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-XqsEI4rqNGC3e5LAl44g3EyLkibmRL7jRTB+Q48yTTHJGQxcDxIvk/0+AR8e59VRjvMvHi8RIhyhCbMiOli8GQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA3qXxfRHyOeoXFWP6QfTbbtBBp4ZXUwsjN7yCJ3yb8lAiAqVBcHrxLgrwbplgPTsC+hdzkU9li1HctJpGKBOqjJ8Q=="}]},"maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rest-promise_1.5.1_1525763077063_0.4939267818555264"},"_hasShrinkwrap":false}},"readme":"#Rest promise class\nES6 Rest class for node **(not browser)**, wrapper arround request library with basic and more common used functionalities\n##Example usage\n```javascript\nvar RestPromise = require(\"rest-promise\");\nvar url = \"http://example.com/account/:accountId/otherArg/:myOtherArg\";\nvar resource = new RestPromise(url);\nvar restPromise = resource\n\t.pathParams({accountId: 1, myOtherArg: \"argValue\"})\t//params that will be replaced in url insted of placeholders\n\t\t.json()\t\t//data will be sent and interpreted as json\n\t\t.requestData({var1: \"value1\", var2: \"value2\"}) \t//data that will be sent in query string or body, depending of method\n\t\t.log()\t\t\t\t//request will be logged to console\n\t\t.timeout(10000) \t//requst will be timed out after 10 seconds (10.000 ms)\n\t\t.get();\t\t\t\t//performs get method can be one of, .get(), post(), put(), delete() \n\nrestPromise.then((responseBody)=>{\n\tconsole.log(responseBody);\n}).catch(RestPromise.logAndRethrow);\n```\nNote: you dont have to set all params. In effect, invoking get(), post(), put() etc is the only thing you have to invoke\n###RestPromise can be reused, for example\n```javascript\nvar RestPromise = require(\"rest-promise\");\nvar url = \"http://example.com/account/:accountId\";\nvar resource = new RestPromise(url, {accountId: 1}); //path params aplied immidiately and preserved for future use. \n\t\t\t\t\t\t\t\t\t\t\t\t\t  //If you use .pathParams() method after this it wont have anny effect\n\nresource.get().then((account)=>{\n\taccount.touchedAt = new Date();\n\treturn account;\n}).then(resource.post).then(()=>{ \t\t\t\t\t//same resource will be resused\n\tconsole.log(\"Account touch timestamp updated\");\n}); \t\t\t\t\t\t\t\n\n```\n###Heders and cookies\nHeaders and cookies can be added following same builder method:\n```javascript\nvar RestPromise = require(\"rest-promise\");\nvar url = \"http://example.com/account/:myPathParam\";\nvar resource = new RestPromise(url, {myPathParam: \"value\"});\nresource.header(\"User-Agent\", \"My app\").header(\"Accept\", \"text/plain\").header(\"Content-Type\", \"application/json\");\nresource.cookie(\"myCookie1\", \"myValueCookie1\").cookie(\"myCookie2\", \"myCookieValue2\");\nresource.get((page)=>{\n\tconsole.log(page);\n});\n```\nNote: after every request you must rebuild parameters/headers again.\n\n###Basic authentication\nCan be added via basicAuth builder method:\n```javascript\nvar RestPromise = require(\"rest-promise\");\nvar url = \"http://example.com/account/:myPathParam\";\nvar resource = new RestPromise(url, {myPathParam: \"value\"});\nresource.basicAuth(\"someUser\", \"somePass\").get((page)=>console.log(page));\n```\nNote: auth header is saved in rest promise instance, so as long you are using same instance you dont need to set it again.\n\n###Cathcing errors\nRestPromise class ships with one static method called 'logAndRethrow' which can be used as utility when catching errors. It simply logs error stack trace to console.error and then rethrows same error.\nsample usage:\n```javascript\nvar RestPromise = require(\"rest-promise\");\nvar resource = new RestPromise(url);\nresource.asJson().get().then((result)=>{\n\tconsole.log(result);\n}).catch(RestPromise.logAndRethrow);\n```\n","maintainers":[{"name":"dbencic","email":"dragan.bencic@gmail.com"}],"time":{"modified":"2022-06-26T12:03:34.099Z","created":"2016-02-08T17:15:17.770Z","1.0.0":"2016-02-08T17:15:17.770Z","1.0.1":"2016-02-08T17:22:29.730Z","1.1.0":"2016-02-10T16:41:46.024Z","1.1.1":"2016-03-17T14:14:02.752Z","1.1.2":"2016-03-17T22:45:27.613Z","1.1.3":"2016-03-18T13:18:50.015Z","1.2.0":"2016-03-24T02:32:16.867Z","1.2.1":"2016-03-24T09:58:35.137Z","1.2.2":"2016-03-31T07:26:25.743Z","1.2.3":"2016-04-19T20:14:59.377Z","1.2.4":"2016-04-29T09:38:43.349Z","1.3.1":"2016-06-30T13:22:25.918Z","1.3.2":"2016-06-30T14:04:34.574Z","1.3.3":"2016-07-04T00:04:59.234Z","1.4.0":"2016-07-08T14:37:33.942Z","1.4.1":"2016-07-11T10:06:56.421Z","1.4.2":"2016-07-15T02:49:09.982Z","1.4.3":"2016-11-02T15:05:20.574Z","1.4.4":"2016-12-02T10:50:05.984Z","1.4.5":"2016-12-07T14:14:56.381Z","1.4.6":"2017-05-23T09:20:07.943Z","1.5.0":"2018-04-03T00:12:29.033Z","1.5.1":"2018-05-08T07:04:37.191Z"},"homepage":"https://github.com/dbencic/rest-promise#readme","keywords":["rest","request","promise","http"],"repository":{"type":"git","url":"git+https://github.com/dbencic/rest-promise.git"},"author":{"name":"dragan.bencic@gmail.com"},"bugs":{"url":"https://github.com/dbencic/rest-promise/issues"},"license":"ISC","readmeFilename":"README.md","users":{"jsumners":true}}