{"dist":{"shasum":"04d15b476b59dac42528ba5de9552916f2359064","tarball":"https://registry.npmjs.org/vine/-/vine-0.1.1.tgz","integrity":"sha512-NBiN0phDxRdNHdBmmnzSDrO5xj1G+VGRJjoDaq7CeaF6x5Qx0a78ZHVM/A36xSAznoFRWCybVjFMq5wDYlDOtw==","signatures":[{"sig":"MEQCIFbaavofI2bGPo9KG0X5B+Gzfv7DY3CsFppugDSxxd+8AiAhHruwD5tLlmoPdRrQsMOwaJp4/sbajEVnsjHpkh71AQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","name":"vine","_from":".","author":{"name":"Craig Condon"},"readme":"Vine -  JSON Message builder           \n============================\n\nWhat's this?\n------------\n\nJust a small utility to help build consistent JSON messages, usually for API's.\n\nWhy?\n----\n\nConsistency. It's also cleaner, and easier to maintain. \n\n\nWhere should I use this?\n------------------------\n\n\t- API\n\t- nice replacement for callback(err, result);\n\nCode Usage:\n-----------\n\n\n```javascript\n\nvar vine = require('vine');\n\n\nvar data = vine.message('hello %s %s','craig','condon').\n\nerror('this is an error').\n\nwarning('this is a warning').\n\n//time to cache this response\nttl(5).\n\n//result data = success\nresult({data:'and this is some data'});\n\n\nconsole.log(data.data); \n\n/* output:\n\n\n\t{ message: 'hello craig condon',\n\t  errors: [ { message: 'this is an error' } ],\n\t  warnings: [ { message: 'this is a warning' } ],\n\t  ttl: 5,\n\t  result: { data: 'and this is some data' } }\n\t\n*/\n\n```\n\n\t\nTo Do: \n------\n\n- code != clean\n\t","_npmUser":{"name":"architectd","email":"craig.j.condon@gmail.com"},"repository":{"url":"http://github.com/crcn/vine.git","type":"git"},"_npmVersion":"1.2.18","description":"API builder","maintainers":[{"name":"architectd","email":"craig.j.condon@gmail.com"}],"dependencies":{"outcome":"*"},"readmeFilename":"README.md","_id":"vine@0.1.1","version":"0.1.1"}