{"_id":"nansen","_rev":"32-f56a1e1832c9527efa6cd7e9c32cfb4b","name":"nansen","description":"Nansen is a tool for consuming APIs.","dist-tags":{"latest":"0.0.24"},"versions":{"0.0.10":{"name":"nansen","version":"0.0.10","description":"Nansen is a tool for consuming APIs.","main":"index.js","repository":{"type":"git","url":"https://github.com/punkave/nansen"},"author":{"name":"P'unk Avenue"},"license":"BSD","dependencies":{"commander":"x","request":"x","async":"x","lodash":"x","extend":"x","moment":"x","colors":"x"},"bugs":{"url":"https://github.com/punkave/nansen/issues"},"homepage":"https://github.com/punkave/nansen","_id":"nansen@0.0.10","dist":{"shasum":"12345c34c1181a14a65aedaaeca36c14e3e24c7f","tarball":"https://registry.npmjs.org/nansen/-/nansen-0.0.10.tgz","integrity":"sha512-a6XVoAis5aIgxGYgegbjhxvq2Ylfd0q8jOHHWX1l7Tqg2850a1RY2GHkfrm495z5ENepkHFUGEJrvNUXnvze8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXTOJmT744eCVUC0JKsyD1PiDlTda0yf9GUEYWrLfCIQIhAKW2IdT2YeHuWZY78uHIEhDJrKa9PUwSIBCNqVOlRAYP"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"mcoppola","email":"coppola@punkave.com"},"maintainers":[{"name":"mcoppola","email":"coppola@punkave.com"}]},"0.0.11":{"name":"nansen","version":"0.0.11","description":"Nansen is a tool for consuming APIs.","main":"index.js","repository":{"type":"git","url":"https://github.com/punkave/nansen"},"author":{"name":"P'unk Avenue"},"license":"BSD","dependencies":{"commander":"x","request":"x","async":"x","lodash":"x","extend":"x","moment":"x","colors":"x"},"bin":{"nansen":"bin/nansen"},"bugs":{"url":"https://github.com/punkave/nansen/issues"},"homepage":"https://github.com/punkave/nansen","_id":"nansen@0.0.11","dist":{"shasum":"c2decbe4baed694252c7a5828e52a3b8c8f98dff","tarball":"https://registry.npmjs.org/nansen/-/nansen-0.0.11.tgz","integrity":"sha512-IM02pwbyMfbGo2gBvvM5ZAuUCz3dLcV4gKRreLUCSkxzeqeIhr730ddLHeb61S2vQ4txiL3a3v/LVuuRNRn09A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDuEz20D4jlvfV4OfC0nCHPm4Q53F52CbSPFAJhE5hyCAiAmviHXrDJJGXoOVvVk+654WzLINr8Czq/s+nfR63U4aw=="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"mcoppola","email":"coppola@punkave.com"},"maintainers":[{"name":"mcoppola","email":"coppola@punkave.com"}]},"0.0.12":{"name":"nansen","version":"0.0.12","description":"Nansen is a tool for consuming APIs.","main":"index.js","repository":{"type":"git","url":"https://github.com/punkave/nansen"},"author":{"name":"P'unk Avenue"},"license":"BSD","dependencies":{"commander":"x","request":"x","async":"x","lodash":"x","extend":"x","moment":"x","colors":"x"},"bin":{"nansen":"bin/nansen"},"bugs":{"url":"https://github.com/punkave/nansen/issues"},"homepage":"https://github.com/punkave/nansen","_id":"nansen@0.0.12","dist":{"shasum":"d0547f774bf2c5bb87c10740286ebae624e14a8a","tarball":"https://registry.npmjs.org/nansen/-/nansen-0.0.12.tgz","integrity":"sha512-MJF6yKQapFlcSWij3ZXCTBRtUnmxvG7NCrzq2kOhQ9zrSql8c73fWbGwvMEvuUwNfRJOHmQmy3w209K94wMpGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHCAFetZTr6r3UkSVTaDM1FiVI/yxomwm7Wf5SR2iRpJAiAbTt2tGKECB4+zz8ZjLSysbFNG0mYb4nimIlfKDUQlng=="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"mcoppola","email":"coppola@punkave.com"},"maintainers":[{"name":"mcoppola","email":"coppola@punkave.com"}]},"0.0.13":{"name":"nansen","version":"0.0.13","description":"Nansen is a tool for consuming APIs.","main":"index.js","repository":{"type":"git","url":"https://github.com/punkave/nansen"},"author":{"name":"P'unk Avenue"},"license":"BSD","dependencies":{"commander":"x","request":"x","async":"x","lodash":"x","extend":"x","moment":"x","colors":"x","progress":"x"},"bin":{"nansen":"bin/nansen"},"bugs":{"url":"https://github.com/punkave/nansen/issues"},"homepage":"https://github.com/punkave/nansen","_id":"nansen@0.0.13","dist":{"shasum":"226e0a7b957355e82342a3e3cbdc2dbddb4d9f07","tarball":"https://registry.npmjs.org/nansen/-/nansen-0.0.13.tgz","integrity":"sha512-d7Fi10vRFji7PQ28SSj4/ex7UpN8puJM8cgiMBrdbcxE15gTQHBggt4W3+ghH7F9mF+kZ5EsraNjM+ldS5FqYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHzPEXLZw66OY59qg8BT/jmh4AdHOwV4gQICGqrtZ2BzAiEA8HIR19NHc1rMb7mn74wcp089s5aYgenRfbXqje4Icho="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"mcoppola","email":"coppola@punkave.com"},"maintainers":[{"name":"mcoppola","email":"coppola@punkave.com"}]},"0.0.14":{"name":"nansen","version":"0.0.14","description":"Nansen is a tool for consuming APIs.","main":"index.js","repository":{"type":"git","url":"https://github.com/punkave/nansen"},"author":{"name":"P'unk Avenue"},"license":"BSD","dependencies":{"commander":"x","request":"x","async":"x","lodash":"x","extend":"x","moment":"x","colors":"x","progress":"x"},"bin":{"nansen":"bin/nansen"},"bugs":{"url":"https://github.com/punkave/nansen/issues"},"homepage":"https://github.com/punkave/nansen","_id":"nansen@0.0.14","dist":{"shasum":"b5c999c192daaa4a0845042c4bf8f9d5c323db4a","tarball":"https://registry.npmjs.org/nansen/-/nansen-0.0.14.tgz","integrity":"sha512-LUIZK6PYd4YhXQrMy+/RVuQzz1IC7EKJqfr+b3o2CRx3m9ahuqwWeIEdVmZPVxYf1+QA4dhNvfxKrJsvVYfUMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiQS8ryPEF7XsXXuF2Tj69SQPdqR0C7k6g6Rzw6g+s/wIgAUFZ12u40QW8IN7mQg5bCNt6TyeK6SGAq3tCerLNhG8="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"mcoppola","email":"coppola@punkave.com"},"maintainers":[{"name":"mcoppola","email":"coppola@punkave.com"}]},"0.0.15":{"name":"nansen","version":"0.0.15","description":"Nansen is a tool for consuming APIs.","repository":{"type":"git","url":"https://github.com/punkave/nansen"},"author":{"name":"P'unk Avenue"},"license":"BSD","dependencies":{"commander":"x","request":"x","async":"x","lodash":"x","extend":"x","moment":"x","colors":"x","progress":"x"},"bin":{"nansen":"bin/nansen"},"bugs":{"url":"https://github.com/punkave/nansen/issues"},"homepage":"https://github.com/punkave/nansen","_id":"nansen@0.0.15","dist":{"shasum":"42c192898519b9766748d213f859b728db734779","tarball":"https://registry.npmjs.org/nansen/-/nansen-0.0.15.tgz","integrity":"sha512-HJQiBIszeQVQq5eNaoqPB7rO2A3lcpneG8w/q/zrkHJdJfgEPRAWzD6+muS1sYaKNmi0YhiPnpzXJI5uGkorYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHJyy90YH+Gb6bH37UYKdLzzZf2Zz3LUR0YM3eyy0p4AAiAo3EC+YKZyz4PDSDTvxcWnpI2pcHzvMtYrrNyB/sgqoA=="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"mcoppola","email":"coppola@punkave.com"},"maintainers":[{"name":"mcoppola","email":"coppola@punkave.com"}]},"0.0.16":{"name":"nansen","version":"0.0.16","description":"Nansen is a tool for consuming APIs.","repository":{"type":"git","url":"https://github.com/punkave/nansen"},"author":{"name":"P'unk Avenue"},"license":"BSD","dependencies":{"commander":"x","request":"x","async":"x","lodash":"x","extend":"x","moment":"x","colors":"x","progress":"x"},"bin":{"nansen":"bin/nansen"},"bugs":{"url":"https://github.com/punkave/nansen/issues"},"homepage":"https://github.com/punkave/nansen","_id":"nansen@0.0.16","dist":{"shasum":"f10f664313921ee3cc96a623fc829e86ee5492e4","tarball":"https://registry.npmjs.org/nansen/-/nansen-0.0.16.tgz","integrity":"sha512-0LT1A+AAL0kivCEsFS0BoTy9EMwBe7auT1ozT7Obxt+ORIrGY6tFzQEIrk4xnhIotoRhue9iaN5PVRvYynFE/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfs3jUJ2B0mxWlf8u5enUYFI2ayAqO0PtLH8awyK0GxwIhAPJiiEsb4FnRlgM1WyRmX8Y5kl94bbbCDY/oiTKJ0RPI"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"mcoppola","email":"coppola@punkave.com"},"maintainers":[{"name":"mcoppola","email":"coppola@punkave.com"}]},"0.0.17":{"name":"nansen","version":"0.0.17","description":"Nansen is a tool for consuming APIs.","repository":{"type":"git","url":"https://github.com/punkave/nansen"},"author":{"name":"P'unk Avenue"},"license":"BSD","dependencies":{"commander":"x","request":"x","async":"x","lodash":"x","extend":"x","moment":"x","colors":"x","progress":"x"},"bin":{"nansen":"bin/nansen"},"bugs":{"url":"https://github.com/punkave/nansen/issues"},"homepage":"https://github.com/punkave/nansen","_id":"nansen@0.0.17","dist":{"shasum":"e165691108a5e21ab0ac4b05beac3d32486abc7a","tarball":"https://registry.npmjs.org/nansen/-/nansen-0.0.17.tgz","integrity":"sha512-sTk3aFtESEtTiYX8VCYskgmt4vCpEAbgDrqsPhU2weKGvzxKJSJ2Q7LAl3hVTrXwSwrnldQJJE/ysPqeKwzJ1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAWgidInKXjCLMfkpDdz5JXK0hzEJHGBqNVGuR+bMToQIhAMpGd7ypKoDcK6VGTMeKY9pvdVaSHZbGySo7NmjMS29n"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"mcoppola","email":"coppola@punkave.com"},"maintainers":[{"name":"mcoppola","email":"coppola@punkave.com"}]},"0.0.18":{"name":"nansen","version":"0.0.18","description":"Nansen is a tool for consuming APIs.","repository":{"type":"git","url":"https://github.com/punkave/nansen"},"author":{"name":"P'unk Avenue"},"license":"BSD","dependencies":{"commander":"x","request":"x","async":"x","lodash":"x","extend":"x","moment":"x","colors":"x","progress":"x"},"bin":{"nansen":"bin/nansen"},"bugs":{"url":"https://github.com/punkave/nansen/issues"},"homepage":"https://github.com/punkave/nansen","_id":"nansen@0.0.18","dist":{"shasum":"a8ba3b66fda7329870317f3acbbf8bab60898a6f","tarball":"https://registry.npmjs.org/nansen/-/nansen-0.0.18.tgz","integrity":"sha512-mRUpKet81lQGFuE3TsA4qix88QdnlVOQy2/fO3GwVfK+ZGLw5hNpr/yb4uqaQoyt056KwDuXWgcfwCyI8HqKHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDp0WK/NbHGA7DNoOiYW8xLV9y+C1zALK0oaxWdDgBcPwIgJRA05GIciGR2hjUdRSqqkrlbg47C+fxihzWRFjRm69Y="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"mcoppola","email":"coppola@punkave.com"},"maintainers":[{"name":"mcoppola","email":"coppola@punkave.com"}]},"0.0.19":{"name":"nansen","version":"0.0.19","description":"Nansen is a tool for consuming APIs.","repository":{"type":"git","url":"https://github.com/punkave/nansen"},"author":{"name":"P'unk Avenue"},"license":"BSD","dependencies":{"commander":"x","request":"x","async":"x","lodash":"x","extend":"x","moment":"x","colors":"x","progress":"x"},"bin":{"nansen":"bin/nansen"},"bugs":{"url":"https://github.com/punkave/nansen/issues"},"homepage":"https://github.com/punkave/nansen","_id":"nansen@0.0.19","dist":{"shasum":"6d220d0a11e92e5527f103489af05b49857e7fc5","tarball":"https://registry.npmjs.org/nansen/-/nansen-0.0.19.tgz","integrity":"sha512-+3OkRVmYCHJ8Thp5zOLY5N6R8QxFv76wADQRUMlagfftdXw9Lvq9uYucGI2KjkeF/zjO231o+75oNaLplahJwQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCc3rLgD1WKiFgCNNqC3EXGmf1wbEcWxn5Eci9ui/ACEwIgCVmY7kRbT/7SsH2wJ+SIMnlKSRorMS1M6q2OrrbjU9E="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"mcoppola","email":"coppola@punkave.com"},"maintainers":[{"name":"mcoppola","email":"coppola@punkave.com"}]},"0.0.20":{"name":"nansen","version":"0.0.20","description":"Nansen is a tool for consuming APIs.","repository":{"type":"git","url":"https://github.com/punkave/nansen"},"author":{"name":"P'unk Avenue"},"license":"BSD","dependencies":{"commander":"x","request":"x","async":"x","lodash":"x","extend":"x","moment":"x","colors":"x","progress":"x"},"bin":{"nansen":"bin/nansen"},"bugs":{"url":"https://github.com/punkave/nansen/issues"},"homepage":"https://github.com/punkave/nansen","_id":"nansen@0.0.20","dist":{"shasum":"b032fb4468b14ab4ec3aae63d0e4ed376e544fb0","tarball":"https://registry.npmjs.org/nansen/-/nansen-0.0.20.tgz","integrity":"sha512-h6f3RWP0pcRIe328nJdyJhTW7fuOL+a8e401zk7JFIXXgbemWBSbYGJiaPdB7OESRlTvE+dp6BkDG4iNLdzjvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHB44Df181/PVEja7TpIKsJnDMfROpkdpsYf/FZNAqugIhANmF06tm3Ugrc+Iv+ryUR1mkZ3WcfwQpGPMr2pw45QPW"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"mcoppola","email":"coppola@punkave.com"},"maintainers":[{"name":"mcoppola","email":"coppola@punkave.com"}]},"0.0.21":{"name":"nansen","version":"0.0.21","description":"Nansen is a tool for consuming APIs.","repository":{"type":"git","url":"https://github.com/punkave/nansen"},"author":{"name":"P'unk Avenue"},"license":"BSD","dependencies":{"commander":"x","request":"x","async":"x","lodash":"x","extend":"x","moment":"x","colors":"x","progress":"x"},"bin":{"nansen":"bin/nansen"},"bugs":{"url":"https://github.com/punkave/nansen/issues"},"homepage":"https://github.com/punkave/nansen","_id":"nansen@0.0.21","dist":{"shasum":"781adceb290d05060e375a7bb3ddda05f28ccbcb","tarball":"https://registry.npmjs.org/nansen/-/nansen-0.0.21.tgz","integrity":"sha512-lNMAM2lUht8gE199/vNWa0w2LBkLgyL3PyNuSLh7YDLDqCk9Rnh1A5ocvKZF85J/D/RMNSg4+iToFe2estFq7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDralgNzOcQJz7/7rwDqQ5x0bVC2uS1UESEgrhebliJbQIgaUOR8RLbQ7Rka6hzDLipQGuwoXpm8I3BnfNv7oSp0mQ="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"mcoppola","email":"coppola@punkave.com"},"maintainers":[{"name":"mcoppola","email":"coppola@punkave.com"}]},"0.0.22":{"name":"nansen","version":"0.0.22","description":"Nansen is a tool for consuming APIs.","repository":{"type":"git","url":"https://github.com/punkave/nansen"},"author":{"name":"P'unk Avenue"},"license":"BSD","dependencies":{"commander":"x","request":"x","async":"x","lodash":"x","extend":"x","moment":"x","colors":"x","progress":"x"},"bin":{"nansen":"bin/nansen"},"devDependencies":{"mocha":"0.3.x"},"scripts":{"test":"make test"},"gitHead":"02bd702e0f0b47564013826ef51c30c22e9a1b2e","bugs":{"url":"https://github.com/punkave/nansen/issues"},"homepage":"https://github.com/punkave/nansen","_id":"nansen@0.0.22","_shasum":"a859871c181d1501eb42a3276b3149610ec52e28","_from":".","_npmVersion":"2.1.17","_nodeVersion":"0.10.34","_npmUser":{"name":"mcoppola","email":"coppola@punkave.com"},"maintainers":[{"name":"mcoppola","email":"coppola@punkave.com"}],"dist":{"shasum":"a859871c181d1501eb42a3276b3149610ec52e28","tarball":"https://registry.npmjs.org/nansen/-/nansen-0.0.22.tgz","integrity":"sha512-1QL4s0Qb5zWLRKrcwx7zYHp5+QR2qVOaZFd1g0xCcgfPc/GVSgj6YeNCGt/0K5YS5A9ZLnFA53jGcwQTQljG+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtgwmreSWBPSkLqb80NMmcVU/pCG/VkyENp7Nv/vInQgIgYHKs/Kq30vKbwOuxK7p+8F3dTXsKUgRlyoX1LdksmNk="}]}},"0.0.23":{"name":"nansen","version":"0.0.23","description":"Nansen is a tool for consuming APIs.","repository":{"type":"git","url":"https://github.com/punkave/nansen"},"author":{"name":"P'unk Avenue"},"license":"BSD","dependencies":{"commander":"x","request":"x","async":"x","lodash":"x","extend":"x","moment":"x","colors":"x","progress":"x"},"bin":{"nansen":"bin/nansen"},"devDependencies":{"mocha":"0.3.x","jsonplaceholder":"x"},"scripts":{"test":"make test"},"gitHead":"d8d5e5c3272a8bf39da8b150f540cfc2f014b7d8","bugs":{"url":"https://github.com/punkave/nansen/issues"},"homepage":"https://github.com/punkave/nansen","_id":"nansen@0.0.23","_shasum":"783388468a4283c58aca0274589e617ae6391137","_from":".","_npmVersion":"2.1.17","_nodeVersion":"0.10.34","_npmUser":{"name":"mcoppola","email":"coppola@punkave.com"},"maintainers":[{"name":"mcoppola","email":"coppola@punkave.com"}],"dist":{"shasum":"783388468a4283c58aca0274589e617ae6391137","tarball":"https://registry.npmjs.org/nansen/-/nansen-0.0.23.tgz","integrity":"sha512-Q1gXgeBmGdD8kGd6NPsBjt6wRnzenFeLMiMNwgevwpy/Ju6TTxdGW5oeM/XM+vdBknHaJGnEF7FvrTZXZyLGWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGxEciopoDQtmviQcmt4R7lcavtQEeYTV7wOHi6kx3NhAiEAwEX9yT436LnSsazsyvxn8WIInXd6D3ImTEbjEH6MsYI="}]}},"0.0.24":{"name":"nansen","version":"0.0.24","description":"Nansen is a tool for consuming APIs.","repository":{"type":"git","url":"https://github.com/punkave/nansen"},"author":{"name":"P'unk Avenue"},"license":"BSD","dependencies":{"commander":"x","request":"x","async":"x","lodash":"x","extend":"x","moment":"x","colors":"x","progress":"x"},"bin":{"nansen":"bin/nansen"},"devDependencies":{"mocha":"0.3.x","jsonplaceholder":"x"},"scripts":{"test":"make test"},"gitHead":"eb4d3e3e5927396fa57a553529e26bcb3854dada","bugs":{"url":"https://github.com/punkave/nansen/issues"},"homepage":"https://github.com/punkave/nansen","_id":"nansen@0.0.24","_shasum":"de910e40ea8f52a2e7f6a001ec737257688cff25","_from":".","_npmVersion":"2.1.17","_nodeVersion":"0.10.34","_npmUser":{"name":"mcoppola","email":"coppola@punkave.com"},"maintainers":[{"name":"mcoppola","email":"coppola@punkave.com"}],"dist":{"shasum":"de910e40ea8f52a2e7f6a001ec737257688cff25","tarball":"https://registry.npmjs.org/nansen/-/nansen-0.0.24.tgz","integrity":"sha512-keXCE7C2Qvdv9Ymbad9BYvoTqUzaj+ma3eIElcjhdcAoV8MplIsLx/2ZSYPHtuGVXnzWtdhXf8nmIT4meZduuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB/Nv5ydyNo8LHHnypJ1TrNztupzfEVsiMVo70ubl5v0AiEAq/YE7MVao7YoDOdAyolUjjNNP0KL2iL4tsnHQ0wIQi4="}]}}},"readme":"# Nansen [![Build Status](https://secure.travis-ci.org/punkave/nansen.png?branch=master)](http://travis-ci.org/punkave/nansen)\n\nNansen is a node.js module for processing APIs.\n\n- [Configuration](#config)\n- [Request Model](#request)\n- [Options](#options)\n- [Example](#example)\n\n\n## <a name=\"config\"></a>Configuration File\nThe configuration for each application is a javascript file that exports a function with required properties `setup`, `get`, and `post`.  Nansen is run from the command line, and initiating a new api task is as simple as passing the configration into nansen.\n\n```bash\nnpm install -g nansen\n\nnansen ./cmmi-glowcaps.js\n```\n\n## <a name=\"request\"></a>Request Model\nThe three required objects represent the order of request operations for the api consumption.\n\n#### `1. Setup`\nAn intial request to obtain a collection items for the subsequent GET and POST requests.\n#### `2. Get`\nA GET request made for each item obtained during `setup`.  Each request is made with partially unique parameters available in the item object. \n#### `3. Post`\nA POST request made for each successful `Get`.  Each POST can also be made with unique parameters avialble in the item.\n\n\n## Request Configuration\nEach of the requests above can be configured with these options.  The following options are executed sequentially for each request.\n\n\n#### `request`\n- `{}`\n- `function(item, callback)`\n- `function(item, response, callback)`\n\n\nThe configuration of the HTTP request follows the node-request module schema which can be found [here](https://github.com/request/request#requestoptions-callback).  You can simply pass an object of options. Or, for `Get`, and `Post` requests, provide a function and access the `item` or the  `response` from the previous request.  \n\n#### `validate`\n- `['json']`\n- `function(response, callback)`\n\nIf a request is successful, we can validate the response here. Errors can be asserted, by passing them in the callback, but modification to the response is not allowed.  For basic format validation, nansen provides built in functions for `json` and `xml`, which can be passed as string in an array.\n\n#### `complete`\n- `function(response, callback)`\n\nComplete is the last step for each `request`.  Here, we can translate and format the data we need from the response.  For the `setup` and `get` steps, we should pass something different in the callback.  \n\n\n* Setup\n>The array of items to be looped over.  The subsequent `get` will run for each item in the array, and each individual item is passed to the the request function in `get`.\n  \n* Get\n>The data from response which we want to POST.\n        \nBy default, the entire response is passed.\n\n\n## <a name=\"options\"></a>Options\nAvailable in the configuration file or the CLI.\n\n#### `Parallel`\nExecutes the item requests in Parallel instead of Series.  For individual items, GET and POST will still execute sequentially.\n- Config File: `parallel: [value]`\n- CLI: `nansen -p [value] <config_file>`\n\n#### `Verbose`\nLogs all the request steps as they occur. \n- Config File: `verbose: true`\n- CLI: `nansen -v <config_file>`\n\n#### `Progress`\nShow progress bar during job process.\n- Config File: `progress: true`\n- CLI: `nansen -P <config_file>`\n\n#### `Debug`\nLogs all the request responses and other extranious information.\n- Config File: `debug: true`\n- CLI: `nansen -d <config_file>`\n\n\n<a name=\"example\"></a>Example Configuration File\n----\n```javascript\nmodules.exports = {\n\n    name: 'ExampleConfig',\n\n    // Options\n    verbose: true,           // Log the requests for each item\n    debug: true,             // Log the request responses and other extra info\n    parallel: 3,             // Process 3 items in parallel\n    progress: true,          // Show progress bar during job process\n\n\n    // 1.  Setup request configuration\n    setup: {\n    \n        // The 'request' object follows the schema of node-request options.\n        request: {\n            method: 'get',\n            url: 'https://myapi.com/data',\n            headers: {\n                'Client-Auth-Key': 'mykey';\n            },\n        },\n        \n        // Validate the response.\n        // An error can be asserted here, but no modification\n        // to the response is permitted.\n        validate: function(res, callback) {\n            // Do we have the right data?\n            callback(null);\n        },\n\n        // Complete is our opportunity to translate the \n        // response to our needs.  Locate, format, and return the\n        // array of items.\n        complete: function(res, callback) {\n            // JSONify our response and \n            // pass the array of items to 'Get'\n            callback(null, JSON.parse(res.items));\n        },\n    },\n\n    // 2.  Get request configuration\n    get: {\n\n        // Request can also be a function that is\n        // provided with <item> and returns the\n        // <request> object in the callback.  \n        // This allows us to pass unique data for\n        // each item request. \n        request: function(item, callback) {\n\n            callback(null, {\n                method: 'get',\n                url: 'https://myapi.com/v1/item/' + item.id,\n                headers: {\n                    'Authorization': 'Bearer ' + item.apidata.access_token\n                }\n            });\n        },\n\n        complete: function(res, callback) {\n            // Format the response data for POST\n            callback(null, JSON.parse(res.data));\n        }\n    },\n\n    // 3.  Post request configuration\n    post:  {\n    \n        // For this request, we want to POST the entire\n        // response from our previous GET.  We can \n        // access this response, and the original <item>\n        // by using the three agrument deleration.\n        request: function(item, response, callback) {\n\n            callback(null, {\n                method: 'post',\n                url: 'https://myapi.com/v1/results/' + item.id,\n                params: {\n                    user_id: item.user_id,\n                    source_id: item.source_id,\n                },\n                headers: {\n                    'Authorization': 'Bearer ' + item.apidata.access_token\n                }\n            });\n        },\n    },\n}\n```\n","maintainers":[{"name":"mcoppola","email":"coppola@punkave.com"}],"time":{"modified":"2022-06-20T20:20:09.732Z","created":"2014-12-16T15:57:49.311Z","0.0.10":"2014-12-16T15:57:49.311Z","0.0.11":"2014-12-16T16:25:18.122Z","0.0.12":"2014-12-16T16:46:37.459Z","0.0.13":"2014-12-16T20:00:19.041Z","0.0.14":"2014-12-16T20:06:31.995Z","0.0.15":"2014-12-17T16:43:33.589Z","0.0.16":"2014-12-17T17:34:42.768Z","0.0.17":"2014-12-18T17:36:02.921Z","0.0.18":"2014-12-18T20:56:41.432Z","0.0.19":"2014-12-19T15:39:29.093Z","0.0.20":"2014-12-19T15:53:46.560Z","0.0.21":"2014-12-19T16:11:17.879Z","0.0.22":"2015-01-06T17:32:14.071Z","0.0.23":"2015-01-06T18:38:45.257Z","0.0.24":"2015-01-12T20:10:33.179Z"},"homepage":"https://github.com/punkave/nansen","repository":{"type":"git","url":"https://github.com/punkave/nansen"},"author":{"name":"P'unk Avenue"},"bugs":{"url":"https://github.com/punkave/nansen/issues"},"license":"BSD","readmeFilename":"README.md"}