{"_id":"mers","_rev":"70-0e0b2518e3429de4753430eeb1670c99","name":"mers","dist-tags":{"latest":"0.14.1"},"versions":{"0.3.4":{"name":"mers","version":"0.3.4","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.3.4","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"dist":{"shasum":"6ca684290194d495bf8a00e633c88e9cc213d718","tarball":"https://registry.npmjs.org/mers/-/mers-0.3.4.tgz","integrity":"sha512-SVDj2y7eJ1yhv8C3r8Ie9gPOGa+nboEUjTVryAucEEneaAUaguy6aXfLpc9S7w2fLJjYnBHMkcG+qlNvzpHbew==","signatures":[{"sig":"MEQCIH7GshEaYMU5Hh3rn3JoFUxgKIOBOZLdYmvk0Fa9wt+8AiBuq7PW6heS9E5n3dynULrdiP7FI2PgXSQboiS7XVperQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"engines":{"node":"*"},"private":false,"scripts":{"test":"./node_modules/mocha/bin/mocha --reporter spec test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.1.1","directories":{},"_nodeVersion":"v0.6.10","dependencies":{"mongoose":">= 2.5.7","underscore":">=1.3.1"},"_defaultsLoaded":true,"devDependencies":{"mocha":"latest","should":"latest","express":">= 2.5.8"},"_engineSupported":true,"optionalDependencies":{}},"0.3.8":{"name":"mers","version":"0.3.8","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.3.8","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"dist":{"shasum":"1c1c2e66006309cd470914ea688308f5042a2474","tarball":"https://registry.npmjs.org/mers/-/mers-0.3.8.tgz","integrity":"sha512-LiKs+nqG9vGfPPDXR5G/gQ2BJAfokYiw3KRKFNejVhqqbz4OrZZDbjqwzKzxwMPwkaTavszxPTprl7rF5gxiGQ==","signatures":[{"sig":"MEYCIQCgX/IbWIXjP8HzqZZCSlQ6RaTLkALDu45yIbAxnpNwUgIhANC1ZnRJUiSkXKMD/zjWsgVyNRMssJkgIFooHDb3s08E","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"engines":{"node":"*"},"private":false,"scripts":{"test":"./node_modules/mocha/bin/mocha --reporter spec test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.1.1","directories":{},"_nodeVersion":"v0.6.10","dependencies":{"mongoose":">= 2.5.7","underscore":">=1.3.1"},"_defaultsLoaded":true,"devDependencies":{"mocha":"latest","should":"latest","express":">= 2.5.8"},"_engineSupported":true,"optionalDependencies":{}},"0.4.1":{"name":"mers","version":"0.4.1","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.4.1","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"dist":{"shasum":"6e74579a0b9f2e30888c6b47d8e730eeb2272b89","tarball":"https://registry.npmjs.org/mers/-/mers-0.4.1.tgz","integrity":"sha512-rNphvKDUiIiBFzLUeLQxB/p2pi9DgJ8xbT8mlyJcMprrxk9AH/F2O6oV/95krGcPxMaC2EcHagXbCNZMMfrX/A==","signatures":[{"sig":"MEUCIQDaN+Qfaytlw2VM/rQsAL7qwt3likRxdain7wsP90RZCAIgEvFQbnveUYcLtSmLAgmEJoWZw0Kwg4/X1VwwYFQqvvI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"engines":{"node":"*"},"private":false,"scripts":{"test":"./node_modules/mocha/bin/mocha --reporter spec test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.1.10","directories":{},"_nodeVersion":"v0.8.8","dependencies":{"mongoose":">= 2.5.7","underscore":">=1.3.1"},"_defaultsLoaded":true,"devDependencies":{"mocha":"latest","should":"latest","express":">= 2.5.8"},"_engineSupported":true,"optionalDependencies":{}},"0.4.0":{"name":"mers","version":"0.4.0","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.4.0","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"dist":{"shasum":"c1e8aedfa59dc5b810103315c5ff65e6ab76ea17","tarball":"https://registry.npmjs.org/mers/-/mers-0.4.0.tgz","integrity":"sha512-Zd59Anh1ZbPteD0pzDPOnkVq5r/zrfiE3Pp1m+ebdp4WGhKmczTnhX0ijZM6KRmBJdPZj+UEySEO9WWqNbQV9w==","signatures":[{"sig":"MEQCIEnkuhe55T+/ZN5hnx3WrfoeFvDm0skrIkDQx2076xNiAiAnEpu1mwFiliq2YsePZ3LZP1oHULhDEuMAXkA2McJ8qg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"engines":{"node":"*"},"private":false,"scripts":{"test":"./node_modules/mocha/bin/mocha --reporter spec test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.1.10","_nodeVersion":"v0.8.8","dependencies":{"mongoose":">= 2.5.7","underscore":">=1.3.1"},"_defaultsLoaded":true,"devDependencies":{"mocha":"latest","should":"latest","express":">= 3.0.0rc4","supertest":"latest"},"_engineSupported":true,"optionalDependencies":{},"directories":{}},"0.6.0":{"name":"mers","version":"0.6.0","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.6.0","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"dist":{"shasum":"e9e63501d229daf40715b23936c6aa24a7bdec85","tarball":"https://registry.npmjs.org/mers/-/mers-0.6.0.tgz","integrity":"sha512-RcomQlxz59IJL+nNzwOr7SaYiDL5mzQXWQ2JxndQJp4hGV8Et4AtDJ50HLEmL3s8BZSKxG7+5C0Jf9bd9HtpJQ==","signatures":[{"sig":"MEUCIGcI2La/9jeGXFw6ouwsNVTB+F+Ro2Xd3qjFOpiquXesAiEAlaV1RTmzucsWugcgG6xwOpUDiGPfhNJjT3XDPSgnJaw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"engines":{"node":"*"},"private":false,"scripts":{"test":"./node_modules/mocha/bin/mocha --reporter spec test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.1.10","_nodeVersion":"v0.8.8","dependencies":{"mongoose":">= 2.5.7","underscore":">=1.3.1"},"_defaultsLoaded":true,"devDependencies":{"mocha":"latest","should":"latest","express":">= 3.0.0rc4","supertest":"latest"},"_engineSupported":true,"optionalDependencies":{},"directories":{}},"0.5.0":{"name":"mers","version":"0.5.0","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.5.0","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"dist":{"shasum":"97e60a8f015212b91874a209463e326e6ad4c0f2","tarball":"https://registry.npmjs.org/mers/-/mers-0.5.0.tgz","integrity":"sha512-AQcmVnTRqShMMRxIE5DZl2IBNws7+qDymhNvlP0e4IsQ2/AyLEjM8JVync+MB+va5XiILaNaKSt9GOkaZ1AyEA==","signatures":[{"sig":"MEUCIQCO0VHJ+eGld3ZmQISkiyGxREzodsdQQemjz/Q1rkGfyQIgORe3Vf25mlMjTwcV9rSz+F8qqjq6ACMyXOcLNjPAmuk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","engines":{"node":"*"},"private":false,"scripts":{"test":"./node_modules/mocha/bin/mocha --reporter spec test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.2.15","description":"*_Mongoose  *_Express  *_Rest  *_Service","dependencies":{"mongoose":">= 2.5.7","underscore":">=1.3.1"},"devDependencies":{"mocha":"latest","should":"latest","express":">= 3.0.0rc4","supertest":"latest"},"optionalDependencies":{},"directories":{}},"0.6.1":{"name":"mers","version":"0.6.1","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.6.1","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"dist":{"shasum":"d8e3e79936a5bccc66d8243d827d0864aea81c35","tarball":"https://registry.npmjs.org/mers/-/mers-0.6.1.tgz","integrity":"sha512-Ml/O68plw8FjMzhedKyOtP4G4UvwdLNL8T/GMeZBFTwb+aCpnm1+1ajRr/UPsv7qxqu+NCFRU/APh3WOwQH32g==","signatures":[{"sig":"MEQCIGuYaR5vzGgdA41kLe8IMe5f+uc4nxDSCs2PMTXP1GBTAiBdeoPSntvOpLrQczGLUSRs/UlT7RuHB0b8UK2tURX+yA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","engines":{"node":"*"},"private":false,"scripts":{"test":"./node_modules/mocha/bin/mocha --reporter spec test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.2.15","description":"*_Mongoose  *_Express  *_Rest  *_Service","dependencies":{"mongoose":">= 2.5.7","underscore":">=1.3.1"},"devDependencies":{"mocha":"latest","should":"latest","express":">= 3.0.0rc4","supertest":"latest"},"optionalDependencies":{},"directories":{}},"0.6.2-0":{"name":"mers","version":"0.6.2-0","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.6.2-0","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"dist":{"shasum":"c8ece43801cec4b48eb3b624956a2c4a76975cea","tarball":"https://registry.npmjs.org/mers/-/mers-0.6.2-0.tgz","integrity":"sha512-PMpVZEq2vUZToVj1YmX8llZTYSvrx6l+Iaw436waj3BHjg2LRtc4TERRcaBPOo269aE2B7auwP6GVZEGW5xKZQ==","signatures":[{"sig":"MEQCIFzK+tiGAwB/tOoFRgbXbV/kCFfsJ4UBN241CURh9tcEAiA8Wom3oLHaanYs1dNjPsc7gO8qLUrrUSt2xYfw2zF9dA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","engines":{"node":"*"},"private":false,"scripts":{"test":"./node_modules/mocha/bin/mocha --reporter spec test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.2.15","description":"*_Mongoose  *_Express  *_Rest  *_Service","dependencies":{"mongoose":">= 2.5.7","underscore":">=1.3.1"},"devDependencies":{"mocha":"latest","should":"latest","express":">= 3.0.0rc4","supertest":"latest"},"optionalDependencies":{},"directories":{}},"0.7.0-0":{"name":"mers","version":"0.7.0-0","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.7.0-0","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"dist":{"shasum":"7f12f80a89ef0085c44b142eebe6b8a00efd35f6","tarball":"https://registry.npmjs.org/mers/-/mers-0.7.0-0.tgz","integrity":"sha512-TDIPLn7K85J+kpKjJ5mfk9wT66kS4L4/wtQFvRuKunKFCuAHGMafIyV1Qf/2VYbxO+vrIi5uZfV3lAQEXEOb5w==","signatures":[{"sig":"MEUCIGEbq4X2ZOrypCwl/ZWB2xU1riV+d2kH6O00bWMGa2aWAiEA2NmrUZKFePARF/rUMfoyta9Ec0poAGPUNa515O4e1V0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","engines":{"node":"*"},"private":false,"scripts":{"test":"./node_modules/mocha/bin/mocha --reporter spec test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.2.15","description":"*_Mongoose  *_Express  *_Rest  *_Service","dependencies":{"mongoose":">= 2.5.7","underscore":">=1.3.1"},"devDependencies":{"mocha":"latest","should":"latest","express":">= 3.0.0rc4","supertest":"latest"},"optionalDependencies":{},"directories":{}},"0.7.1-0":{"name":"mers","version":"0.7.1-0","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.7.1-0","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"dist":{"shasum":"ab5c16a1e634f96049b9d63b2d7101e9a3eee969","tarball":"https://registry.npmjs.org/mers/-/mers-0.7.1-0.tgz","integrity":"sha512-VaUX87+naLIDGvEppW5Qtp61dkgYPdAYEaiz6EmG2jgAtFkqoNLQkt7dK1Zvd8KBNlBT4V04/C5RoB0PhbHMKg==","signatures":[{"sig":"MEYCIQDpMif68IdJwDyuQHZ4cM2nmMW2ySZGOqAsUfdi7qPqcgIhAKDrmAt7QFN6KSDGZzkHIVILi6YHoAP/NU3RQn78mPVe","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","engines":{"node":"*"},"private":false,"scripts":{"test":"./node_modules/mocha/bin/mocha --reporter spec test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.2.15","description":"*_Mongoose  *_Express  *_Rest  *_Service","dependencies":{"mongoose":">= 2.5.7","underscore":">=1.3.1"},"devDependencies":{"mocha":"latest","should":"latest","express":">= 3.0.0rc4","supertest":"latest"},"optionalDependencies":{},"directories":{}},"0.7.2":{"name":"mers","version":"0.7.2","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.7.2","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"bugs":{"url":"https://github.com/jspears/mers/issues"},"dist":{"shasum":"18c5d06b4ff4046dc01c7700b0047977d3ee4fab","tarball":"https://registry.npmjs.org/mers/-/mers-0.7.2.tgz","integrity":"sha512-VJTDe4bukNs3JQtJJk+xnLTMn1IRrKK1uY4HrIe5VupLwECiymVHOiXXI7KdWqLb33HnAiCWcU5eMYWFdE52kQ==","signatures":[{"sig":"MEUCIErI4Ju/gCdhSOVK1Ie/A0wdQxOppCGpslrwhFJVZ75aAiEA0mLPalT+YreJfycQeQZADpdi6PA8kZXpJ5dZru2jUVw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","engines":{"node":"*"},"private":false,"scripts":{"test":"./node_modules/mocha/bin/mocha --reporter spec test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.3.11","description":"*_Mongoose  *_Express  *_Rest  *_Service","dependencies":{"mongoose":">= 2.5.7","underscore":">=1.3.1"},"devDependencies":{"mocha":"latest","should":"latest","express":">= 3.0.0rc4","supertest":"latest"},"optionalDependencies":{},"directories":{}},"0.7.3":{"name":"mers","version":"0.7.3","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.7.3","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"homepage":"https://github.com/jspears/mers","bugs":{"url":"https://github.com/jspears/mers/issues"},"dist":{"shasum":"c0f962394c7b78a51e8258f3cacd3a4ae791e5ac","tarball":"https://registry.npmjs.org/mers/-/mers-0.7.3.tgz","integrity":"sha512-6xh2r77kw79Sh18XTxn8hzxSCYoMsH3KoYtiLFpf+eHAEyhe9rQlqpDPqiMzOstEZDMWGZqQbXP1EPrX9d5F4g==","signatures":[{"sig":"MEUCIEvQWRraewhsR4AKJMK+bLQllIfuTZiKEWTjzbeARhhgAiEApZd5ICC7R0aJ+d+jKceWH4Cquj5XXjYMlvaoc4OW1Fo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","engines":{"node":"*"},"private":false,"scripts":{"test":"./node_modules/mocha/bin/mocha --reporter spec test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.3.14","description":"*_Mongoose  *_Express  *_Rest  *_Service","dependencies":{"mongoose":">= 2.5.7","underscore":">=1.3.1"},"devDependencies":{"mocha":"latest","should":"latest","express":">= 3.0.0rc4","supertest":"latest","pow-mongoose-fixtures":"latest"},"optionalDependencies":{},"directories":{}},"0.9.0":{"name":"mers","version":"0.9.0","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.9.0","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"bugs":{"url":"https://github.com/jspears/mers/issues"},"dist":{"shasum":"d1a290b43b94caad471f146cdc9d4aa6b983fac4","tarball":"https://registry.npmjs.org/mers/-/mers-0.9.0.tgz","integrity":"sha512-jNqjjl9igdi7bIEvTb39PojoLHaTO08m61Pbtj+fYJZajIbErNpLq3TxVJEVNCSWrLcYuiStVnapbkoJEHbTyg==","signatures":[{"sig":"MEYCIQDTSJC1JIYqGolWTR/MRNAjLgv3+95chjlu7ATgaAudIwIhAMpWLJmGaXARIi3jatiOyF5uHHphNm+PnMxQM6osVRwS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","engines":{"node":"*"},"private":false,"scripts":{"test":"./node_modules/mocha/bin/mocha --reporter spec test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.3.11","description":"*_Mongoose  *_Express  *_Rest  *_Service","dependencies":{"mongoose":">= 2.5.7","underscore":">=1.3.1"},"devDependencies":{"mocha":"latest","should":"latest","express":">= 3.0.0rc4","supertest":"latest","pow-mongoose-fixtures":"latest"},"optionalDependencies":{},"directories":{}},"0.9.1":{"name":"mers","version":"0.9.1","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.9.1","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"bugs":{"url":"https://github.com/jspears/mers/issues"},"dist":{"shasum":"90639dde3065406bb3266e0e531c327fc4ba296d","tarball":"https://registry.npmjs.org/mers/-/mers-0.9.1.tgz","integrity":"sha512-0UHlApo69zaLqDGCa0QVSMPdxmsoqCgyudkZShYwJSdBV/60CdRy5G7NR1Q8dXbUTDvOgcwGKgfjZfNsFwtSLg==","signatures":[{"sig":"MEUCIQCB1QTw/WLseeQLVX9BVMcNSJSW0Lu6+4PXwsKs1v2gjAIgHitskMyFIPDauorNPR/9GUuyvJZHVPaa3OXkHYaS20I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","engines":{"node":"*"},"private":false,"scripts":{"test":"./node_modules/mocha/bin/mocha --reporter spec test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.3.11","description":"*_Mongoose  *_Express  *_Rest  *_Service","dependencies":{"mongoose":">= 2.5.7","underscore":">=1.3.1"},"devDependencies":{"mocha":"latest","should":"latest","express":">= 3.0.0rc4","supertest":"latest","pow-mongoose-fixtures":"latest"},"optionalDependencies":{},"directories":{}},"0.9.2":{"name":"mers","version":"0.9.2","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.9.2","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"bugs":{"url":"https://github.com/jspears/mers/issues"},"dist":{"shasum":"fbfc273d08c4d59c5652f1b08adc8e189b7aa617","tarball":"https://registry.npmjs.org/mers/-/mers-0.9.2.tgz","integrity":"sha512-MTa+lsnYA+TY4tkLdQcAcTXXmuom4dqqLv8dCtoLNCiaRxqLEoSM+m/9hOeq+7v/sUNwLUvs/grc+ITxhMQYzg==","signatures":[{"sig":"MEUCID4lJozHGS7oVDLBfXBqODv8uUcKqsW6NjjMJZ/gvvssAiEAk4/gcvJCRO4clqFkzT7hCh5UW0Bm8ygzS3Qto2gfNqk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","engines":{"node":"*"},"private":false,"scripts":{"test":"./node_modules/mocha/bin/mocha --reporter spec test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.3.11","description":"*_Mongoose  *_Express  *_Rest  *_Service","dependencies":{"mongoose":">= 2.5.7","underscore":">=1.3.1"},"devDependencies":{"mocha":"latest","should":"latest","express":">= 3.0.0rc4","supertest":"latest","pow-mongoose-fixtures":"latest"},"optionalDependencies":{},"directories":{}},"0.9.3":{"name":"mers","version":"0.9.3","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.9.3","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"bugs":{"url":"https://github.com/jspears/mers/issues"},"dist":{"shasum":"068978949e5ff91e341c5b38414b44f4484dbf2f","tarball":"https://registry.npmjs.org/mers/-/mers-0.9.3.tgz","integrity":"sha512-dGC1iNYObzBjC3G8v3Fi2q+4Uuk2qtLq6p4aKn3YOQEIjHzG9seGHATyVP9IQ2WLsnHtJ8+j4WWO4HivY6+IBQ==","signatures":[{"sig":"MEQCIHxiebqrR618G/LfibO936HxmbepcFFUHsgQnDfBakCjAiAV6UtknD+yroeGEevL78iwk2UEl40gJZA4VGAKr2CBdA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","engines":{"node":"*"},"private":false,"scripts":{"test":"./node_modules/mocha/bin/mocha --reporter spec test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.3.11","description":"*_Mongoose  *_Express  *_Rest  *_Service","dependencies":{"mongoose":">= 2.5.7","underscore":">=1.3.1"},"devDependencies":{"mocha":"latest","should":"latest","express":">= 3.0.0rc4","supertest":"latest","pow-mongoose-fixtures":"latest"},"optionalDependencies":{},"directories":{}},"0.10.1":{"name":"mers","version":"0.10.1","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.10.1","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"homepage":"https://github.com/jspears/mers","bugs":{"url":"https://github.com/jspears/mers/issues"},"dist":{"shasum":"3149cc8bfbc173c262298c9b0af7b5ee360bf69d","tarball":"https://registry.npmjs.org/mers/-/mers-0.10.1.tgz","integrity":"sha512-oqUTBhdcdGSHQa3OkE2GASaHhaIAyx+rRxULA4YSLNc2EyU2rDmz6OPL907qF+gQRo9sONdYzboloUd655y8Og==","signatures":[{"sig":"MEUCIAhvUvRuCiNDpmaZCkmZPogTG3AO9lYBXr4QrO4NiFn8AiEAlLvSnWqvooS7QlZtMEgNAwJ/o3/8rrlbCxvrQn07wZc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"3149cc8bfbc173c262298c9b0af7b5ee360bf69d","engines":{"node":"*"},"private":false,"scripts":{"test":"mocha test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.4.9","description":"*_Mongoose  *_Express  *_Rest  *_Service","dependencies":{"mongoose":"^3.8.21","nojector":"^0.2.0","underscore":"^1.7.0","body-parser":"~1.10.0","errorhandler":"^1.3.0","concat-stream":"~1.4.7"},"devDependencies":{"mocha":"^2.1.0","should":"^4.6.0","express":"^4.10.7","supertest":"^0.15.0","pow-mongoose-fixtures":"latest"},"optionalDependencies":{},"directories":{}},"0.11.0":{"name":"mers","version":"0.11.0","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.11.0","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"homepage":"https://github.com/jspears/mers","bugs":{"url":"https://github.com/jspears/mers/issues"},"dist":{"shasum":"f62c5728eae4a4b731fffa6ef1a5392dd2cecf57","tarball":"https://registry.npmjs.org/mers/-/mers-0.11.0.tgz","integrity":"sha512-Iw0AUcSs2vTeRD/niYYD/p7wC1a88PmC5+O2nQoiATnpLLEMWeXuhH+qMPtUN9SXMPuUFgb64cNmuMLsf/TMyg==","signatures":[{"sig":"MEQCIHcJyRozahF+4D2tjriNKhdyljc3diAa9P+TpzPkOYBzAiBOzszRdOXu22R8F+WrLN8TBPHAkLnINjvu8KhYM7doew==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"f62c5728eae4a4b731fffa6ef1a5392dd2cecf57","engines":{"node":"*"},"private":false,"scripts":{"test":"mocha test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.4.9","description":"*_Mongoose  *_Express  *_Rest  *_Service","dependencies":{"nojector":"^0.2.0","underscore":"^1.7.0","errorhandler":"^1.3.0","concat-stream":"~1.4.7"},"devDependencies":{"mocha":"^2.1.0","should":"^5.1.0","supertest":"^0.15.0","pow-mongoose-fixtures":"latest"},"peerDependencies":{"express":"^4.10.7","mongoose":"^3.8.21","body-parser":"~1.10.0"},"optionalDependencies":{},"directories":{}},"0.11.1":{"name":"mers","version":"0.11.1","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.11.1","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"homepage":"https://github.com/jspears/mers","bugs":{"url":"https://github.com/jspears/mers/issues"},"dist":{"shasum":"90523009bc7b926a4ffcbf00d40cc68b0d59330f","tarball":"https://registry.npmjs.org/mers/-/mers-0.11.1.tgz","integrity":"sha512-DHGdES3zTojSfSI4kGGik/nowWOcxmP5Uduw05RvM5IyP4CkvLyXEs4N5c/y1+u2dKHCwyPdVqHqz8/K72p8ow==","signatures":[{"sig":"MEUCIHcqTRKTEFm/1kkhhEzamA6Yp/fdX96ZHmdM9Vp8UCCwAiEAjq690Gi/EhmiNNBf8rqCkWbCV6ZupMFNCvxZuDn8fSE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"90523009bc7b926a4ffcbf00d40cc68b0d59330f","engines":{"node":"*"},"private":false,"scripts":{"test":"mocha test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.4.9","description":"*_Mongoose  *_Express  *_Rest  *_Service","dependencies":{"nojector":"^0.2.0","underscore":"^1.7.0","errorhandler":"^1.3.0","concat-stream":"~1.4.7"},"devDependencies":{"mocha":"^2.1.0","should":"^5.1.0","express":"^4.10.7","mongoose":"^3.8.21","supertest":"^0.15.0","body-parser":"~1.10.0","pow-mongoose-fixtures":"latest"},"peerDependencies":{"mongoose":"^3.8.21"},"optionalDependencies":{},"directories":{}},"0.12.0":{"name":"mers","version":"0.12.0","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.12.0","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"homepage":"https://github.com/jspears/mers","bugs":{"url":"https://github.com/jspears/mers/issues"},"dist":{"shasum":"4d2ac66833b9ada868fc5673b06950313129a1c9","tarball":"https://registry.npmjs.org/mers/-/mers-0.12.0.tgz","integrity":"sha512-+V3NhnNRqVtyVtjro3wrxLUx7BCE1HBDCnOHeXFpNRthjWcQ0LokaGoXrsZQu3W3ozsN9emHv56rDcY9BJBIbw==","signatures":[{"sig":"MEUCIQDuo5+vTN46+O2XXHSOWs9ktj0XtnNV0iqV857RGaDhKAIgGV7TZnjCrOlIEEeQKwoafX4Yw3zTvYcLJoY6RZoCMC8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"4d2ac66833b9ada868fc5673b06950313129a1c9","engines":{"node":"*"},"private":false,"scripts":{"test":"mocha test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.4.9","description":"*_Mongoose  *_Express  *_Rest  *_Service","dependencies":{"nojector":"^0.2.0","underscore":"^1.7.0","errorhandler":"^1.3.0","concat-stream":"~1.4.7"},"devDependencies":{"mocha":"^2.1.0","should":"^5.1.0","express":"^4.10.7","mongoose":"^3.8.21","supertest":"^0.15.0","body-parser":"~1.10.0","pow-mongoose-fixtures":"latest"},"peerDependencies":{"mongoose":"^3.8.21"},"optionalDependencies":{},"directories":{}},"0.13.0":{"name":"mers","version":"0.13.0","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.13.0","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"homepage":"https://github.com/jspears/mers","bugs":{"url":"https://github.com/jspears/mers/issues"},"dist":{"shasum":"279e9b865290d06b0e64163755493eb17e4b2315","tarball":"https://registry.npmjs.org/mers/-/mers-0.13.0.tgz","integrity":"sha512-A3qddrmWTUqJq20jmVNipPcxekgnr8BLL/qZdnTwSjrvpeeTi8pWkrKNmJtemwsI8gscK2lN2pILW758tIDxmA==","signatures":[{"sig":"MEQCIEYFRg8NbPNPlfsd8QqBeVbPGqI+B4rTYefa80nfUd/4AiAqsJwEwB+7ahq6MQwhbR1a2MsVHuipAFHFivil1UKUvA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"279e9b865290d06b0e64163755493eb17e4b2315","engines":{"node":"*"},"private":false,"scripts":{"test":"mocha test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.4.9","description":"*_Mongoose  *_Express  *_Rest  *_Service","dependencies":{"nojector":"^0.2.0","underscore":"^1.7.0","errorhandler":"^1.3.0","concat-stream":"~1.4.7"},"devDependencies":{"mocha":"^2.1.0","should":"^5.1.0","express":"^4.10.7","mongoose":"^3.8.21","supertest":"^0.15.0","body-parser":"~1.10.0","pow-mongoose-fixtures":"latest"},"peerDependencies":{"mongoose":"^3.8.21"},"optionalDependencies":{},"directories":{}},"0.13.1":{"name":"mers","version":"0.13.1","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.13.1","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"homepage":"https://github.com/jspears/mers","bugs":{"url":"https://github.com/jspears/mers/issues"},"dist":{"shasum":"3eff5e6c58fd308666d74ff0d039b386d9988f72","tarball":"https://registry.npmjs.org/mers/-/mers-0.13.1.tgz","integrity":"sha512-vQvIDYVJfqT+j4tCvkB9QAdedkgowBMru3+3u/yWfslRFgTQ8QaFfKOtlaXkRk0vpBzdfRDR8IvcjA4fmHm+Kw==","signatures":[{"sig":"MEUCIBa5cMKgeDyaG1H1ZrdtpN7pRGIN5PTi/92AxnveWI/fAiEAmotbwYpRWyzteqvM0gQqzxrEq/M8UJfaWCtkW8DSjWo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"3eff5e6c58fd308666d74ff0d039b386d9988f72","engines":{"node":"*"},"private":false,"scripts":{"test":"mocha test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"1.4.9","description":"*_Mongoose  *_Express  *_Rest  *_Service","dependencies":{"mongoose":"^4.0.0","nojector":"^0.2.0","underscore":"^1.7.0","body-parser":"^1.10.2","errorhandler":"^1.3.0","concat-stream":"~1.4.7"},"devDependencies":{"mocha":"^2.1.0","should":"^5.1.0","express":"^4.10.7","mongoose":"3.8.25","supertest":"^0.15.0","body-parser":"~1.10.0","pow-mongoose-fixtures":"latest"},"peerDependencies":{"mongoose":"^3.8.21"},"optionalDependencies":{},"directories":{}},"0.11.2":{"name":"mers","version":"0.11.2","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.11.2","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"homepage":"https://github.com/jspears/mers","bugs":{"url":"https://github.com/jspears/mers/issues"},"dist":{"shasum":"154f183a792a69a20fa77862fbdc742eb5b204c1","tarball":"https://registry.npmjs.org/mers/-/mers-0.11.2.tgz","integrity":"sha512-U/qGvZojme9vYBsQ5fMfbJqGlLwNGJCQUFFt65y8MOqNHkA4KJuwRUbgREzYVfUjc72WDiMv5p+PfKparYWbVQ==","signatures":[{"sig":"MEUCIHAzB77vIlCawl8vTW31ltZCaC26JCzxv34XgAmjQws0AiEAlixD04lruFyW47hUvIG4NFGsj71Y2oyRPgofg/jBec4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"154f183a792a69a20fa77862fbdc742eb5b204c1","engines":{"node":"*"},"gitHead":"c6c8624a41d3dfa99a0ef0d05d5fd8a2597c9154","private":false,"scripts":{"test":"mocha test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"2.10.1","description":"*_Mongoose  *_Express  *_Rest  *_Service","_nodeVersion":"0.12.4","dependencies":{"nojector":"^0.2.0","underscore":"^1.7.0","errorhandler":"^1.3.0","concat-stream":"~1.4.7"},"devDependencies":{"mocha":"^2.1.0","should":"^5.1.0","express":"^4.10.7","mongoose":"^4.0","supertest":"^0.15.0","body-parser":"~1.10.0","pow-mongoose-fixtures":"latest"},"peerDependencies":{"mongoose":"^4.0.0"},"optionalDependencies":{},"directories":{}},"0.14.1":{"name":"mers","version":"0.14.1","keywords":["framework","json","express","mongoose","rest","restful"],"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"_id":"mers@0.14.1","maintainers":[{"name":"speajus","email":"speajus@gmail.com"}],"homepage":"https://github.com/jspears/mers","bugs":{"url":"https://github.com/jspears/mers/issues"},"dist":{"shasum":"4d9113a3318701d3ca039b5e631b1d901eb69dfa","tarball":"https://registry.npmjs.org/mers/-/mers-0.14.1.tgz","integrity":"sha512-uI9UDKCSVgsILlpct3mgZY5qJmVHjhkqKh2nv4eTNIVd611vQjF3Yh4zK1+SE4HXpjZDuw/YFvvze0p6qJprAw==","signatures":[{"sig":"MEUCIQDdaWViLnaBP1QajoZyw73h2XZtC24akAwtUkCLQn/NVgIgd8k8UFTZmix7uEp9mVZNl0/ckK2LMtF9OQBWwLXmUPU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"4d9113a3318701d3ca039b5e631b1d901eb69dfa","engines":{"node":"*"},"gitHead":"f621b9825c23a9b0e3125098ad101a70fa9420b4","private":false,"scripts":{"test":"mocha test/*-mocha.js"},"_npmUser":{"name":"speajus","email":"speajus@gmail.com"},"repository":{"url":"git@github.com:jspears/mers","type":"git"},"_npmVersion":"2.10.1","description":"*_Mongoose  *_Express  *_Rest  *_Service","_nodeVersion":"0.12.4","dependencies":{"nojector":"^0.3.0","underscore":"^1.7.0","errorhandler":"^1.3.0","concat-stream":"~1.4.7"},"devDependencies":{"mocha":"^2.1.0","should":"^5.1.0","express":"^4.10.7","mongoose":"^4.0","supertest":"^0.15.0","body-parser":"~1.10.0","pow-mongoose-fixtures":"latest"},"peerDependencies":{"mongoose":"*"},"optionalDependencies":{},"directories":{}}},"time":{"created":"2012-02-28T00:51:41.536Z","modified":"2024-11-25T01:07:58.129Z","0.3.4":"2012-02-28T00:51:42.098Z","0.3.8":"2012-03-17T21:08:15.411Z","0.4.1":"2012-08-24T00:57:32.508Z","0.4.0":"2012-09-12T14:49:51.561Z","0.6.0":"2012-12-15T15:59:07.035Z","0.5.0":"2013-04-25T00:03:11.332Z","0.6.1":"2013-04-25T00:03:58.901Z","0.6.2-0":"2013-05-13T00:06:55.422Z","0.7.0-0":"2013-09-09T00:08:40.945Z","0.7.1-0":"2013-09-09T00:30:46.042Z","0.7.2":"2013-12-02T03:01:35.476Z","0.7.3":"2014-03-09T19:24:06.431Z","0.9.0":"2014-05-18T23:57:57.190Z","0.9.1":"2014-06-01T23:55:30.042Z","0.9.2":"2014-06-02T00:14:35.444Z","0.9.3":"2014-06-09T01:58:22.787Z","0.10.1":"2015-01-26T02:00:28.033Z","0.11.0":"2015-03-15T23:18:00.346Z","0.11.1":"2015-03-16T00:52:46.922Z","0.12.0":"2015-03-23T04:10:51.640Z","0.13.0":"2015-03-25T21:26:35.980Z","0.13.1":"2015-03-25T22:42:10.732Z","0.11.2":"2015-09-13T21:49:50.883Z","0.14.1":"2015-09-18T00:56:19.553Z"},"bugs":{"url":"https://github.com/jspears/mers/issues"},"author":{"name":"Justin Spears","email":"speajus@gmail.com"},"homepage":"https://github.com/jspears/mers","keywords":["framework","json","express","mongoose","rest","restful"],"repository":{"url":"git@github.com:jspears/mers","type":"git"},"description":"*_Mongoose  *_Express  *_Rest  *_Service","maintainers":[{"email":"speajus@gmail.com","name":"speajus-root"}],"readme":"#Mers\n *_Mongoose\n *_Express\n *_Rest\n *_Service\n \n    Mers is a plugin for express to expose mongoose finders as simple crud/rest operations.  The\n    basic idea being you should just define your model/finders and the rest should be be magic.\n\n![build status](https://travis-ci.org/jspears/mers.svg)\n\n## Usage\n\nInstall mers, mongoose, express and body-parser\n\n```sh\n  $ npm install express --save\n  $ npm install mongoose --save\n  $ npm install body-parser --save\n  $ npm install mers --save\n\n```\n\n```javascript\n    //You really need body parser for things to work correctly\n     var express = require('express'),\n        mongoose = require('mongoose'),\n        Schema = mongoose.Schema,\n        bodyParser = require('body-parser')\n\n    app.use(bodyParser.json())\n    app.use(bodyParser.urlencoded({ extended: true }));\n    var SampleSchema = new Schema({\n        name:String,\n        age:Number\n    });\n\n    mongoose.model('sample', SampleSchema);\n    var mers = require('mers');\n    app.use('/rest', mers({uri:'mongodb://localhost/your_db'}).rest());\n\n```\nConfiguration options include:\n* `uri:uri://mongoose`  (as shown above)\n* `mongoose:{mongoose}` (your mongoose instance)\n* `error:{function}` (your custom Error Handler)\n* `responseStream:{function}` (your custom respost stream. See: lib/streams.js)\n* `transformer:{function}` (your custom transformer factory)\n# `inject:{Nojector}` (custom nojector add resovlers, or whatever)\n\n###If you had a schema such as\n   ```javascript\nvar mongoose = require('mongoose'), Schema = mongoose.Schema,\n    ObjectId = mongoose.Schema.ObjectId;\n\nvar CommentSchema = new Schema({\n    title:String, body:String, date:Date\n});\n\n\nvar BlogPostSchema = new Schema({\n    author:ObjectId,\n    title:String,\n    body:String,\n    buf:Buffer,\n    date:Date,\n    comments:[CommentSchema],\n    meta:{\n        votes:Number, favs:Number\n    }\n});\n/**\n * Note this must return a query object.   If it doesn't well, I dunno what it'll do.\n * @param q\n * @param term\n */\nBlogPostSchema.statics.findTitleLike = function findTitleLike(q, term) {\n    return this.find({'title':new RegExp(q.title || term.shift() || '', 'i')});\n}\nvar Comment = module.exports.Comment = mongoose.model('Comment', CommentSchema);\nvar BlogPost = module.exports.BlogPost = mongoose.model('BlogPost', BlogPostSchema);\n```\n\nyou could then access it at\n    listing.\n    \n    http://localhost:3000/rest/blogpost/\n    http://localhost:3000/rest/blogpost/$id\n    http://localhost:3000/rest/blogpost/$id/comments\n    http://localhost:3000/rest/blogpost/$id/comments/$id\n    http://localhost:3000/rest/blogpost/$id/comments/0\n    http://localhost:3000/rest/blogpost/finder/findTitleLike/term\n    \n    \n###Pagination\nPagination is also supported via skip= and limit= query params.\n\n    http://localhost:3000/rest/blogpost/$id?skip=10&limit=10\n\n###Population\nMongoose populate is supported, but this will be changing shortly to allow for more\nfine grained controll over population.  Currently you can do\n\n    http://localhost:3000/rest/blogpost?populate=comments\n\nor to specify particular fields.\n\n    http://localhost:3000/rest/blogpost?skip=10&populate[comments]=title,date\n\n\n\n###Filter\nFiltering is available for strings. To find all the blog posts with C in the title.\n\n    http://localhost:3000/rest/blogpost?filter[title]=C\n\nAlso you can and or nor the filters by using + (and) - (nor)  or nothing or\n    http://localhost:3000/rest/blogpost?filter[-title]=C\n    http://localhost:3000/rest/blogpost?filter[+title]=C&filter[-body]=A\n\n\n\nTo filter all String fields that have a C in them\n\n    http://localhost:3000/rest/blogpost?filter=C\n\n\n###Sorting\nSorting is supported 1 ascending -1 ascending.\n\n  http://localhost:3000/rest/blogpost?sort=title:1,date:-1\n\n###Transformer\nTransformers can be registered on startup.  A simple TransformerFactory is\nincluded.  If the function returns a promise, it will resolve the transformer\nasynchronously.   The transformers follow the same injection rules.\n\nTo transform asynchronously just return a promise from your function.  You can\nchain transformers.  Transformers can also inject, but the first argument should\nbe the object you want to transform.\n\n\n```javascript\n\napp.use('/rest', require('mers').rest({\n    mongoose:mongoose,\n    transformers:{\n           renameid: function(obj){\n                obj.id = obj._id;\n                delete obj._id;\n                //don't forget to return the object.  Null will filter it from the results.\n                return obj;\n           },\n           /**\n            Injects the user into the function, and checks if the\n            owner is the same as the current user.  Works with passport.\n           */\n           checkUser:function(obj, session$user){\n              if (obj.owner_id !== session$user._id){\n                //returning null, short circuits the other transformers. And will\n                //not be included in the response.\n                return null;\n              }else{\n               return obj;\n              }\n\n           },\n           /**\n             Uses injection and async resolution.\n           */\n           async:function(obj, query$doIt){\n             if (query$doIt){\n                var p = promise();\n                setTimeout(function(){\n                    obj.doneIt =true;\n                    //Mpromise resolve.  Should work with other promises, or any object with a then function.\n                    p.resolve(null, obj);\n                },50);\n                return p;\n             }else{\n             return obj;\n             }\n\n           }\n      }\n    }));\n}\n```\n\n\n\nto get results transformered just add\n\n     http://localhost:3000/rest/blogpost?transform=renameid\n\n\n\nIt handles  get/put/post/delete I'll add some docs on that some day, but pretty much as you expect, or I expect anyways.\nsee tests/routes-mocha.js for examples.\n\n###Static Finders\nIt should also be able to be used with Class finders. Now handles class finders. Note: They must return  a query object.\nThey are passed the query object and the rest of the url. All of the populate's, filters, transforms should work.\n\n```javascript\n\n/**\n * Note this must return a query object.\n * @param q\n * @param term\n */\nBlogPostSchema.statics.findTitleLike = function findTitleLike(q, term) {\n    return this.find({'title':new RegExp(q.title || term.shift(), 'i')});\n}\n```\n\nSo you can get the url\n\n\n```\nhttp://localhost:3000/rest/blogpost/finder/findTitleLike?title=term\n```\n\nor\n\n```\nhttp://localhost:3000/rest/blogpost/finder/findTitleLike/term\n```\n\n#### Promises with finders\nOccassionally you may want to do something like a double query within a finder.   Mers has got your back.\n\n```javascript\n      BlogPostSchema.statics.findByCallback = function onFindByCallback(query$id) {\n          return this.find({_id: query$id}).exec();\n      }\n\n\n```\n\n\n### Error Handling ###\nTo create a custom error handler\n\n```javascript\n\n   app.use('/rest', rest({\n         error : function(err, req, res, next){\n               res.send({\n                   status:1,\n                   error:err && err.message\n               });\n           }).rest());\n\n```\n\n\n### Custom ResultStream\nYou can create your own result stream. It needs to subclass Stream and be writable.  This can allow\nfor other formats, and preventing the wrapping of data in the payload.\n\n\n##Method\nYou can invoke a method on a model.  This useful to expose more complicated things\nthat can't just be filtered.   Of course you can return nested nestings too...\n\n\n###Returning an Object\nThis one just returns an object, from /department/$id/hello/name\n\n```javascript\nDepartmentSchema.methods.hello = function DepartmentSchema$hello(){\n    return {name:'hello '+this.name};\n}\n```\n\n###Returning a Promise.\nThis is returns a promise from /department/$id/promises.  Really you just\nneed to return an object with an then function.  So any promise library should work.\n\n```javascript\nDepartmentSchema.methods.promises = function (data){\n    var p = promise();\n    setTimeout(p.resolve.bind(p, null, {name:'hello '+this.name}), 100);\n    return p;\n}\n```\n\n### Returning a Query object.\nThis is returns a query from /department/$id/superDo\n\n```javascript\nDepartmentSchema.methods.superDo = function DepartmentSchema$hello(data){\n   return Department.find({\n       _id:this._id\n   });\n}\n```\n\n##Examples.\nAn example of a customized rest service can be found at\n\n    https://github.com/jspears/backbone-directory\n\n\n##Parameter injection\nWhen invoking a method you often need data from the request to process.  To do this\nwe have an injection system.   You can inject a method on a model, or a transformer.\n\nIt resolves the prefix of the parameter name deliminated by $ to the scope.  See\n nojector for more information there. The built in resolvers are\nsession,\nparam,\nquery,\nbody,\nargs,\nrequire\n\n```\nurl: http://localhost/rest/department/finders/byName?name=Stuff\n```\n\n\n```javascript\nDepartmentSchema.static.byName = function DepartmentSchema$hello(query$name){\n   return Department.find({\n        name:query$name\n       });\n}\n```\n\nworks on instances to...\n\n```\nurl: http://localhost/rest/department/$id/hello/?name=STuff\n```\n\n\n```javascript\nDepartmentSchema.method.hello = function DepartmentSchema$hello(query$name, session$user){\n    //session.user === session$user\n   return Department.find({\n        name:query$name\n       });\n       \n}\n```\n\n\n### Delete\nDeleting is follows the rules of as a put, however, it has an option, of deleteRef, when you\nare deleteing a nested ref'd object and want to delete it from the refer'd collection. see\nroutes-user-mocha.js\n\n\n\n","readmeFilename":"Readme.md","users":{"j3kz":true,"pehaada":true,"liping511":true,"rameyrobo":true}}