{"_id":"@auth0extend/zerocrm-middleware","_rev":"3-bbf0c553ae91a9b9c3d910b0961a25b3","name":"@auth0extend/zerocrm-middleware","description":"Middleware for the Auth0 Extend ZERO CRM sample","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@auth0extend/zerocrm-middleware","version":"1.0.0","description":"Middleware for the Auth0 Extend ZERO CRM sample","main":"index.js","repository":{"type":"git","url":"git+https://github.com/auth0/zerocrm-middleware.git"},"author":{"name":"Glenn Block"},"license":"Apache-2.0","bugs":{"url":"https://github.com/auth0/zerocrm-middleware/issues"},"homepage":"https://github.com/auth0/zerocrm-middleware#readme","dependencies":{"body-parser":"^1.18.2"},"gitHead":"074d7532779e0d5d245a2a6954744ffcc69daab2","_id":"@auth0extend/zerocrm-middleware@1.0.0","scripts":{},"_shasum":"e04ea14985f7310b7336ce445aae01199a0ae495","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"glennblock","email":"glenn.block@gmail.com"},"dist":{"shasum":"e04ea14985f7310b7336ce445aae01199a0ae495","tarball":"https://registry.npmjs.org/@auth0extend/zerocrm-middleware/-/zerocrm-middleware-1.0.0.tgz","integrity":"sha512-/ljqXVIOPxBJrjxn1YTWQxbPiTb8SiZnJPS9Guobyhd1RmCxE4YMfcwJ25okUsUJL0Tg57Eh8d5UseTyYR/Vdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG0sO7KCy68w/jbS4KfSJxvVpvETXPn/Osw1HQsddwc4AiA0YV59DAvBBywOCbRFFoe/lQMy72XkBqzZx5l17JND2w=="}]},"maintainers":[{"name":"glennblock","email":"glenn.block@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zerocrm-middleware-1.0.0.tgz_1508873841316_0.25545014813542366"}}},"readme":"# zerocrm-middleware\nMiddleware for the Auth0 Extend ZERO CRM sample\n\n## Overview\nThis middleware offers a custom programming model for the ZERO CRM application. It allows users to author extensions using a programming model of: `function (lead, cb)` and to access secrets globally.\n\nHere is example illustrating using the Clearbit SDK to look up a lead.\n\n```javascript\nvar clearbit = require('clearbit')(module.exports.secrets.clearbit_key);\n\nmodule.exports = function(lead, cb) {\n  console.log(lead.email);\n  \n  var Person = clearbit.Person;\n  Person.find({email: lead.email}).\n    then(person=> {\n      lead.github = person.github.handle;\n      lead.twitter = person.twitter.handle;\n      lead.linkedin = person.linkedin.handle;\n      console.log(lead);\n      cb(null, lead);\n    });\n};\n```\n\n## License\n\nApache 2.0\n\n\n","maintainers":[{"email":"matiasw@gmail.com","name":"woloski"},{"email":"randall.tombaugh@gmail.com","name":"rwtombaugh"},{"email":"centurion.javier@gmail.com","name":"jcenturion"},{"email":"bobby.johnson@gmail.com","name":"notmyself"},{"email":"filearts@gmail.com","name":"filearts"},{"email":"tomasz@janczuk.org","name":"tjanczuk"},{"email":"glenn.block@gmail.com","name":"glennblock"}],"time":{"modified":"2022-06-12T14:52:20.930Z","created":"2017-10-24T19:37:21.382Z","1.0.0":"2017-10-24T19:37:21.382Z"},"homepage":"https://github.com/auth0/zerocrm-middleware#readme","repository":{"type":"git","url":"git+https://github.com/auth0/zerocrm-middleware.git"},"author":{"name":"Glenn Block"},"bugs":{"url":"https://github.com/auth0/zerocrm-middleware/issues"},"license":"Apache-2.0","readmeFilename":"README.md"}