{"_id":"yarf","_rev":"49-1458b7a0edd384b78ce461be4dc7024c","name":"yarf","description":"Yet Another Restful Framework. Port PHP MVC Apps to Node! Develop new MVC + RESTful Apps. Provide Websocket APIs","dist-tags":{"latest":"0.0.23"},"versions":{"0.0.1":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.1","license":"AGPL-1.0","files":["./"],"repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"_id":"yarf@0.0.1","scripts":{},"_shasum":"8f5b71226971e1aa2d14b6127fb14e2df400b11f","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"8f5b71226971e1aa2d14b6127fb14e2df400b11f","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.1.tgz","integrity":"sha512-yvHgUAc0g5kWRfwu8DruQXJ8GP8d+YxCSCDtpYiCduDWFD6zEJuFZvycbPG/pC41tZ93lXZ4qMrgBypJyV0xZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGW0sv/HOsl43mK4qJDkJ/R7OIlrtM/VYGUnBuQPJ2WCAiEAxeiaFpsOLMLV/3BXnvxKYzmJkXnDaeUfM/NQ8Ovw4CA="}]}},"0.0.2":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.2","license":"AGPL-1.0","files":["./"],"repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"_id":"yarf@0.0.2","scripts":{},"_shasum":"a245f30a8606886e5733c6f24cb2795339180586","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"a245f30a8606886e5733c6f24cb2795339180586","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.2.tgz","integrity":"sha512-tBJ1ySzNxOfQqBchQu+SqWWZ8V7p2oCWiIlP9L4iZTf62OE3yAR5+IfYER/LYhotyOK7vCl0nQWWNESBK4WqGg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEwe5ElPTZKtoAi/iR8o4ht5pUSMF/pbfwuRNYXO3/TrAiEAtvnCGC8LknyXTydYjbAGcaMqMVtBz+fggd1JtmBPh0k="}]}},"0.0.3":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.3","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"ff8983916ccf56d1c5a2da8bd488b2550f44c010","_id":"yarf@0.0.3","_shasum":"a68a5105952159934138a21af646cf054af6799f","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"a68a5105952159934138a21af646cf054af6799f","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.3.tgz","integrity":"sha512-hWQ1S/Id+gDbXagafEQ3wSBeIQ1tkHw7BMsVEep96LxKemSQSFqscEc7r7vvawv4fCdJpc2rfk21RR91IYv1PQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0IBdpcfP2NnlSTncfFZf2Twaj1kb4kWAxFroaVQLQ8wIgS4tqpF8PUtAzJKDEz/IcM4Wz+pWqibbaMECUZ1eTtdk="}]}},"0.0.4":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.4","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_id":"yarf@0.0.4","_shasum":"25a7e74a5b891cd8350ada62503c3963667b2591","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"25a7e74a5b891cd8350ada62503c3963667b2591","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.4.tgz","integrity":"sha512-jwSdZPZniBkqC5NSkx9wtf9/XS1hPAKm+8tMyTOZu5hnywdTpP5BvBAzYPI2DuWrIBh/VDAQXmT2Zd9LDL9gCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA3RYkdenp8OChqhb/v4sKXQr/SHSnPheVv8uUJHsUoeAiEA3rj0d9QB1rPza4JEZwIDyQraW10ZbGQtInzEstgRzDE="}]}},"0.0.5":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.5","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"0227b0d724114ec8e8e8df2fa2d3adcde4529382","_id":"yarf@0.0.5","_shasum":"e821a69c59b97c4ee62be96d753e4cd7bad56c59","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"e821a69c59b97c4ee62be96d753e4cd7bad56c59","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.5.tgz","integrity":"sha512-GrBYFgiPtkAZyuB/aprY9O2eRg8XO0XCdh2U+qEI9UYr4ffZU8a8KYdqeZKLFXp4K7d4bd0axFS4YYC1YCmdkQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQvqajMI8MARg3tIj1wrDUnhvuyY1au6iRe1m7WnE+YQIhAL8/zo1e/uJ51yEVcN6Zr4r8xVY0dQZ29CVp6vCqTlWT"}]}},"0.0.6":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.6","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_id":"yarf@0.0.6","_shasum":"b3b070ca3603fc7fbbc44f20775660a12e3b10bc","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.11.14","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"b3b070ca3603fc7fbbc44f20775660a12e3b10bc","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.6.tgz","integrity":"sha512-GSbbxjUCO2GkUj4H4XrGrBBI7zQBeUS4sPPIlAWTk3saJUKmc/Xkh4dsaW1v42fTgCkOw6lEfMMI51GFhQdx/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSMfupavaKTx0xKLvHF0cmsuPKXCPxt5coGutD5Aw0tgIhAKdu2m4JMlQt4hkphy5OzUks/Tj2BKNCoVKGbaW5Q2AD"}]}},"0.0.7":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.7","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"c25d233c69346b1ce8d86dc94a24711a1c898bd2","_id":"yarf@0.0.7","_shasum":"baf9a79d35e297df5536777cc703c06d93402d80","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"baf9a79d35e297df5536777cc703c06d93402d80","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.7.tgz","integrity":"sha512-kgLRqtgchXF63zzHNJYfIeBRJu3RaJ1v5yhWdbfTEvKrk2yKube3D/AMF4dkYH6u8kVMU08XrQRvhWaxF7ZKSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWEZqYyrKXBttJN5rI5e/jZhNiXLA/oohNeyRXBe7c6QIhAOSuOZP4JbdQqNYr8VvXXS3U01SqjAhGPVVlSesjboWt"}]}},"0.0.8":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.8","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_id":"yarf@0.0.8","_shasum":"ef5f63e02fb1ef04b479c6c17f1441c3bbca4330","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"ef5f63e02fb1ef04b479c6c17f1441c3bbca4330","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.8.tgz","integrity":"sha512-8hW/iBkZf2JNOox13fSLvK/+8sNyjk6NiaR8oITSgK3NCx7aZkhVlmJS+L2pgo65LnxGkbvvImQ/qocZWb1uUQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBbrJN3Df/v+65WE3w4zXK+iww/HOqpVahcrNPzFYoqaAiAsUwgmIb5IftyOo++inNyZsvwDMGJcGTV1cg9vxnFg5A=="}]}},"0.0.9":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.9","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_id":"yarf@0.0.9","_shasum":"10cbe33c8530b9d739c00ce8f32b6d3f7b9ce3c2","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"10cbe33c8530b9d739c00ce8f32b6d3f7b9ce3c2","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.9.tgz","integrity":"sha512-I86vSj5XWji7d1QJpUiAoDUCTaV1I0WzyEBcDs5EgZBCxLXQjYYlnw0Fq3iri9SZccqfKlGklQcx4TIMhZSNFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdrVvD/awK//TEMWrB2JMbLBC3L0kc0YaiEhttLy6e0gIhALgfysfeVNmqsPF5bI0CYBYBDU7+AA+yjb/z5eavgCx5"}]}},"0.0.10":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.10","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_id":"yarf@0.0.10","_shasum":"6862dce6e17ffdb367e8f4485a385f956cb3211e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"6862dce6e17ffdb367e8f4485a385f956cb3211e","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.10.tgz","integrity":"sha512-wjmy56ecssxyciLqOIhk+03W3/CYYdx5MEdpoUDeFLTHoqwpdLiDu72TF2Fn2mNyii02tRnn+5+0p1MVC2PZnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLbU0P2TxC7kGK/EFi9pUWgHiEOaI0JG16EIP1Ig2UVAIhAL7YaOHkStCzR8AvS1XBBG6xAnNIRaxicNe+H4Ihxjnu"}]}},"0.0.11":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.11","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_id":"yarf@0.0.11","_shasum":"380fa8fcb5088fdb65733f0f40498708191d5abe","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"380fa8fcb5088fdb65733f0f40498708191d5abe","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.11.tgz","integrity":"sha512-Jhe6lyPhewneNVsy32CONgzT9O7uEin8B43DsvCkrLYg08n0Pmf0guQD46YzzTnRLwG8S8Vpkx2u3XDGeaKWVQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFP/032H/C1rfknhRTR1QT9TtbTzt1KCYf5VlGlTWZt6AiBA4C93AgTF+f1MfrddB6monD9/kNs1A/raAqHgA2czAQ=="}]}},"0.0.12":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.12","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_id":"yarf@0.0.12","_shasum":"a16f8ea91759bfdfc805e8d6dae08e658150b8e0","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"a16f8ea91759bfdfc805e8d6dae08e658150b8e0","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.12.tgz","integrity":"sha512-/OLOuVFTT3SwsXi+FbVoaf6OnxSCvFtAd3czUhhoKnhAA2M1zJln7REVB1eJYF0U4XvB505M6zc+gI3O7nJj1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQnsrF9iWZkgyaLC7dk6/F+R9TT3p5SgSTcjUZ2HXuIQIhAPK9ap7rnZY7ZlOR+qDMV2HhHRwP+Z/cBA5iXRpjuf24"}]}},"0.0.13":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.13","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_id":"yarf@0.0.13","_shasum":"2ddf99057972d62c9c1e6e4245230a9aede744c4","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"2ddf99057972d62c9c1e6e4245230a9aede744c4","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.13.tgz","integrity":"sha512-wQAb3uKmJ6LWNpabgqGPTnHoj+q8R+vYeeh5MPI9dPgwbLugFoZ83tuUAZBJt4mVZCX07nFMg13FfxeBZ0SS6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDZLG2Zb0r5z1sIKX9VyoTXV6qW7I90ZGwtNRpCtEnqYAiBcJj9P0DcpClJMkswxJW+vTw560nZjeULkAzNuEzdVyA=="}]}},"0.0.14":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.14","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_id":"yarf@0.0.14","_shasum":"7e1d6d35e2c162cda86bed4bdad13f7410142bc9","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"7e1d6d35e2c162cda86bed4bdad13f7410142bc9","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.14.tgz","integrity":"sha512-Dv/mBUp8w3rQTT9aRh1NT3G+W4F7iHUpjVQM8Qm9aUimXA7UTtfYKbnRveSb/j/cPIyV1oE88eQsPOy5yGo9KQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0pbNFjJighpc2nU8V37Lah4Z86FUbacprZ6IMY1975QIgCagJpSTu04hdPVoU7Hb4btInEmDgdRfQ7WakAhFZ02k="}]}},"0.0.15":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.15","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_id":"yarf@0.0.15","_shasum":"711bf4ec2fd156b5c0274ba918f8834b3e9b5577","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"711bf4ec2fd156b5c0274ba918f8834b3e9b5577","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.15.tgz","integrity":"sha512-0xQ5ckqBH9kHv5ETy5L4yLYDbGud1n/rZTvh4QhO0DcUxCGWMTMBlm0C+paSKh+ZgI8sNXF7GNqUm/L6lXAdWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB8ZH3wMyHwdFmdonFt//8s/azJZco/ZKNtXX04Gdp42AiBdoaAWe3Xei2swTNcoHhez4P36UI9fxyB9y83qhqU7WQ=="}]}},"0.0.16":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.16","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_id":"yarf@0.0.16","_shasum":"11c26599219848c6abb1a7775d7eb98391e25179","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.11.14","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"11c26599219848c6abb1a7775d7eb98391e25179","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.16.tgz","integrity":"sha512-ZSUf2OWSy7PjOEz3lI/N561J6FhHQYRERUqUwsGM+jD0bThpyUNxEr2YtXLMIMdFGOgLMmhJoQ8wL9TVQXv3CQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDm/0Ixq+e7i036DfrNXaXb26QhVL1SS7AG2QFSHuMbHAIgF9+7wHiyQlYst9+8vJdAAdsA/9xZe723M1omSwFzx08="}]}},"0.0.17":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.17","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"231879eb406b131cadc48e9055f520024d297452","_id":"yarf@0.0.17","_shasum":"88e41ac969b504d1f2ce582231971ca5abfb62f3","_from":".","_npmVersion":"2.1.7","_nodeVersion":"0.11.14","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"88e41ac969b504d1f2ce582231971ca5abfb62f3","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.17.tgz","integrity":"sha512-pqBCK8nBK/eGigkzqjulmBiy7JxytVTCh+xRJkohcTso6r2qJC9BWEA/we/5mJjh1d27xCSvVsc7eaMbKBK14Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVn2thXWkWDZP0zWwkEXg5mlTH3nMJpZpiAVbzMtDuUQIgWgmCt41/YWysbTA37/POpiQn7igDrSm3XFR805gv0Ck="}]}},"0.0.18":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.18","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"30643cc7815a52fa8cbf015cbfd5ec5b8ced44bd","_id":"yarf@0.0.18","_shasum":"e6e6e8252d04f3f062bdc0dc930a0b4abe23fc5a","_from":".","_npmVersion":"2.1.7","_nodeVersion":"0.11.14","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"e6e6e8252d04f3f062bdc0dc930a0b4abe23fc5a","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.18.tgz","integrity":"sha512-fvraSRxcJqdK/SfUgGPUvvAQg0tot+xbuw9J+kKjBpODP1wtHZGDcBCVa6OK7+Jt0KkM45DQUle1cbhD3HrrTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWqugb0NfHQ/ze4SIqX5XO/Suopkd7mDu+SlroMXxnzwIhALQxg9omdxEnVIYYHKFH8q4MIOuvRFTs/3Niy06tHTT2"}]}},"0.0.19":{"name":"yarf","description":"Yet Another Restful Framework, is what it says with the mention that it mimics YARF PHP (Porpoise).\n It brings all you know good about PHP into the world of Javascript without bringing any of the bad parts.\n VERY helpful if you want to port PHP applicatio","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.19","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"fdd3a901e117d2c88f4a9481aa2033ea677e39bd","_id":"yarf@0.0.19","_shasum":"22232d1f7fb97a00c0505382b05842ee394d0ba9","_from":".","_npmVersion":"2.1.7","_nodeVersion":"0.11.14","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"22232d1f7fb97a00c0505382b05842ee394d0ba9","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.19.tgz","integrity":"sha512-evI3rYOvWhReNBWj9z5xOrC7pZFPxLh0ZfE/enlUJ7RfGEhspw2uNxxTlE6dpGAhHrXBvd+65/9XeKTG4Ec8uw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICXai5ThWpSenOcBKNDJj9u+V0Oh1hAd8hK0T3Wb71vOAiAuAP2FmnbrsI4cnb8fNsecw7KqAyFvUlaxwdjJEr5xSA=="}]}},"0.0.20":{"name":"yarf","description":"Yet Another Restful Framework. Port PHP MVC Apps to Node! Develop new MVC + RESTful Apps. Provide Websocket APIs","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.20","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_id":"yarf@0.0.20","_shasum":"6e5a0fff178f3d125cbf87ed587835193c5433c5","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"6e5a0fff178f3d125cbf87ed587835193c5433c5","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.20.tgz","integrity":"sha512-wk0I4igK5GqmOWW6XvwwmUmzp5v2fzpJ6coWKdsedu9n0IfF9HaSJvXUb0h46gGvANI79DUrP6vzeKS62p82Vg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFiQOpkzlKnE9EOgLVPeYv70BkUAbP8riL0hlC5zqE/kAiEAxAXoN66zUDymf07CwasWQ0Xs/7RxG/7l7vgZZMz4Kwg="}]}},"0.0.21":{"name":"yarf","description":"Yet Another Restful Framework. Port PHP MVC Apps to Node! Develop new MVC + RESTful Apps. Provide Websocket APIs","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.21","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"e81bbb7be0c33b62053db5c07f0ed33c168d758b","_id":"yarf@0.0.21","_shasum":"7dafa184a2fef5bb20f084f003bb149adbc637c6","_from":".","_npmVersion":"2.1.7","_nodeVersion":"0.11.14","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"7dafa184a2fef5bb20f084f003bb149adbc637c6","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.21.tgz","integrity":"sha512-WFFhbEacblMgAf2umX1tNsrtXjb9S2BGIUdnEJVsXe4fePaID9gykZp9nK+eArqt0yhyliqDJ6K9de43r7PvlA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID8Tb2FaDBXNcO4v9QhiuTIeKLjZwK33PNM91hV/Y8lXAiEA3UaV5CZewUaSge7YG2SnSe1rjoINXtlVFi0cbbybUa8="}]}},"0.0.22":{"name":"yarf","description":"Yet Another Restful Framework. Port PHP MVC Apps to Node! Develop new MVC + RESTful Apps. Provide Websocket APIs","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.22","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"3609b66af5514ffd2c0005fe83eefc4b4119da43","_id":"yarf@0.0.22","_shasum":"4352c38341d9482cac82d02245b5f09f7f6d3d6b","_from":".","_npmVersion":"2.1.7","_nodeVersion":"0.11.14","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"4352c38341d9482cac82d02245b5f09f7f6d3d6b","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.22.tgz","integrity":"sha512-2hiP3AecjRneWgl3nsAgPmTEHk+VxY7DxuU6A/EukxhXIXmVWw3iagy5niCHXEY3LnZUrX8aM3O2T/p592VjbA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE68zEycfXRrxMqp+Q4qYNc2qHcmnxIFu3ilgragqO4mAiB6NOjhJT+YhiTkjdQOu9Da3gjDe9GPukcp3KT3BgP7fA=="}]}},"0.0.23":{"name":"yarf","description":"Yet Another Restful Framework. Port PHP MVC Apps to Node! Develop new MVC + RESTful Apps. Provide Websocket APIs","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"homepage":"https://github.com/thegeapy/yarf","author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"version":"0.0.23","license":"AGPL-1.0","repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"dependencies":{"ws":"^0.4.32","busboy":"^0.2.9","cookie":"^0.1.2","mongodb":"^1.4"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_id":"yarf@0.0.23","_shasum":"2287808d5a8240855a5cae730a7546b41f8cd9db","_from":".","_npmVersion":"2.1.7","_nodeVersion":"0.11.14","_npmUser":{"name":"verticaljelly","email":"valentin@verticaljelly.com"},"maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"dist":{"shasum":"2287808d5a8240855a5cae730a7546b41f8cd9db","tarball":"https://registry.npmjs.org/yarf/-/yarf-0.0.23.tgz","integrity":"sha512-rsyZFF1oWfufBdWZyE33cN4Gg/BSEi9kBErDQQBvXAquVLVKeU4dHBvIm5jIWRNh62cTfH3WhEZaCSzF+1NF2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4ZCAqXLZA+tXvXuJP8ggA6+fDUwpfo4v4nt9YF54aPQIhAItpqUBRh7QPF7Yx1hNz7TzpmR03nvq+5q3D4Y1fLMZu"}]}}},"readme":"yarf\n====\n## Yet Another Restful Framework\n\nThe framework is meant to be a very lightweight REST Framework to be used in applications that want to match the traditional Model Mapper View Controller (MMVC).\nIt requires your application to have a certain folder structure:\n```\nMainAppFolder\\\n    |\n    |---Controllers\\\n    |       |\n    |       |---controllerName.js\n    |       |---controllerName1.js\n    |---Mappers\\\n    |       |\n    |       |---mapperName.js\n    |       |---mapperName1.js\n    |---Models\\\n    |       |\n    |       |---modelName.js\n    |---public\\\n    |       |\n    |       |--file.html\n    |       |--folder\\\n    |       |    |---file.jpg (or any other format)\n```\n* **Controller** - contains the actions preceded by their HTTP Verbs. For example:\n\n```javascript\nvar constructor = function () {\n    this.usersMapper = new(require('../Mappers/users.js'))();\n    this.userModelClass = require('../Models/user.js');\n}.extends(require('yarf').Controller);\n\nconstructor.prototype.postLogin = function () {\n    if(typeof this._PAYLOAD['email'] == \"undefined\" || typeof this._PAYLOAD['password'] == \"undefined\"){\n        this.statusCode = 404;\n        this.response = undefined;\n        return this.end();\n    }\n    this.usersMapper.login(this._PAYLOAD['email'], this._PAYLOAD['password'], function(err, doc){\n        if(err){\n            this.statusCode = 500; // something happened in the db server?!\n        }else {\n            if (doc == null || doc == undefined) {\n                console.log('Login attempt failed from ', this.remoteIP, \":\", this.remotePort , \" with payload: \", this._PAYLOAD);\n                this.response = undefined;\n                this.statusCode = 404;\n            }else{\n                this._SESSION['login'] = doc._id.toString();\n                this.response = doc;\n                this.statusCode = 200;\n            }\n        }\n        this.end();\n    }.bind(this));\n};\n\nmodule.exports = constructor;\n```\n\n\nControllers expose several **properties**:\n\n\n| Property Name        | What it does\n|:--------------------:|:------------\n| `this._SESSION`      | contains all the session data that has been added to it in previous calls\n| `this._GET`          | contains all query string vars: `http://yoursite.tld/user/processGetVars?getVar1=300` will produce `this._GET['getVar1']` with the value of `300`\n| `this._POST`         | contains all form fields sent through POST\n| `this._FILES`        | contains a list of files and where they are stored on the disk currently (temporary store), as well as their details as sent by the client\n| `this._URLPARAMS`    | an array with the params sent by url: `http://site.tld/user/action/paramValue1/paramValue2` will produce `['paramValue1', 'paramValue2']`\n| `this._PAYLOAD`      | contains the payload as received. If `Content-Type` was set to `application/json` then payload will contain the parsed object\n| `this.remoteIp`      | ip of the remote (for now it respects directly the X-Forwarded-For header, future versions will make it so it respects only from trusted list of ips)\n| `this.remotePort`    | the port of the remote connection. (when proxied the value may be inacurate)\n\n\nControllers also expose the following methods:\n\n\n| Method Name         | What it does\n|:--------------------|:-------------\n| `this.setCookie`    | `function(cookieName, cookieValue, options)` Sets a cookie with the `cookieValue` value and `cookieName` name. Can add standard cookie options\n| `this.end`          | call this when you're done with your request and the system can send the data to the user.\n\n\n* **Mapper** - Contains data access layer. Will be used directly by the Controller. It has a `this.db` pointing to the current MongoDB connection An example:\n\n```javascript\nvar constructor = function () {\n    Object.defineProperty(this, 'collection', {\n        value: this.db.collection(\"users\")\n    });\n    this.collection.ensureIndex({\n        email: 1\n    }, {unique: 1}, function (err) {\n        if (err)throw err\n    });\n    this.collection.ensureIndex({\n        email: 1,\n        password: 1\n    }, function (err) {\n        if (err) throw err;\n    });\n}.extends(require('yarf').Mapper);\nconstructor.prototype.login = function (email, password, cb) {\n    this.collection.findOne({\n        email: email,\n        password: digestPassword(password)\n    }, {\n        password:0\n    }, function (err, doc) {\n        if(err) console.log('!!!!ERROR IN DB!!!!', err);\n        cb(err, doc);\n    });// no need to bind.\n};\nmodule.exports = constructor;\n```\n* **Model** - Contains the model of the data. For example:\n```javascript\nvar constructor = function(passedObject){\n    // todo complete this model with proper checks and everything.\n    var email = \"\";\n    var password=\"\";\n    var name = \"\";\n    var surname = \"\";\n    var dob = new Date();\n    var phoneNumber = \"\";\n    Object.defineProperties(this,{\n        email:{\n            enumerable: true,\n            configurable: false,\n            set: function(paramMail){\n                // ensure the email is correct\n                if(!emailTest.test(paramMail)){ // all these checks will be replaced by specs\n                    throw \"Not Email\";\n                }\n                email = paramMail;\n            },\n            get: function(){\n                return email;\n            }\n        },\n        password: {\n            enumerable: true,\n            configurable: false,\n            set: function(passParam){\n                if(typeof passParam != \"string\" || passParam.length < 8 ){ // whatever other stuff you may want to use\n                    throw \"invalid password\";\n                }\n                password = passParam;\n            },\n            get: function(){\n                return password;\n            }\n        }\n    });\n\n    if(typeof passedObject != 'undefined'){\n        for(var enumProperty in this){\n            this[enumProperty] = passedObject[enumProperty];\n        }\n    }\n}.extends(require('yarf').Model);\nmodule.exports = constructor;\n```\n\n##Boilerplate\nExample app.js:\n```javascript\nvar yarf = require(\"yarf\");\nyarf.start(8000, __dirname+\"/Server\", {\n    mongo:{\n        url: 'mongodb://localhost/myApp'\n    },\n    session:{\n        collName: \"mySessionCollection\",\n        sessVarName: \"sid\"\n    }\n});\n```\n\n##Future Roadmap:\n* Interfaces with mySQL if need arises or other dbs.\n* Break the code a bit more from the Router.js eventually into more files\n","maintainers":[{"name":"verticaljelly","email":"valentin@verticaljelly.com"}],"time":{"modified":"2022-06-29T07:00:32.631Z","created":"2014-10-12T16:54:25.681Z","0.0.1":"2014-10-12T16:54:25.681Z","0.0.2":"2014-10-14T08:04:19.343Z","0.0.3":"2014-10-14T11:20:55.187Z","0.0.4":"2014-10-14T12:00:55.153Z","0.0.5":"2014-10-16T17:02:27.942Z","0.0.6":"2014-10-17T08:45:41.114Z","0.0.7":"2014-10-18T00:12:17.848Z","0.0.8":"2014-10-18T17:54:28.698Z","0.0.9":"2014-10-18T17:59:07.121Z","0.0.10":"2014-10-20T01:44:08.720Z","0.0.11":"2014-10-20T13:53:13.817Z","0.0.12":"2014-10-21T14:48:29.237Z","0.0.13":"2014-10-21T15:21:42.736Z","0.0.14":"2014-10-21T15:25:34.668Z","0.0.15":"2014-10-22T14:34:26.066Z","0.0.16":"2014-10-23T08:39:27.018Z","0.0.17":"2014-11-13T09:24:02.130Z","0.0.18":"2014-11-17T22:11:40.051Z","0.0.19":"2014-11-18T09:33:23.914Z","0.0.20":"2014-11-18T10:45:13.866Z","0.0.21":"2014-11-21T10:49:27.682Z","0.0.22":"2014-11-25T09:22:01.976Z","0.0.23":"2015-02-19T12:07:14.093Z"},"homepage":"https://github.com/thegeapy/yarf","keywords":["PHP","YARF","Porpoise","MVC","REST","Lightweight","Websockets","WSS","Controller","Model","Mapper","Data Mapper","DTO"],"repository":{"type":"git","url":"https://github.com/thegeapy/yarf.git"},"author":{"name":"Valentin Popescu"},"bugs":{"url":"https://github.com/thegeapy/yarf/issues"},"license":"AGPL-1.0","readmeFilename":"README.md","users":{"verticaljelly":true}}