{"_id":"winston-spy","_rev":"11-9780354e8e7234e694782829ecdbd149","name":"winston-spy","description":"Test winston logging with spies","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"winston-spy","version":"0.1.0","description":"Test winston logging with spies","main":"src/winston-spy.js","scripts":{"test":"mocha test/winston-spy.js"},"repository":{"type":"git","url":"git@github.com:manuelcabral/winston-sinon.git"},"keywords":["winston","testing","test","spies"],"author":{"name":"Manuel Cabral","url":"m.cabral@digisfera.pt"},"license":"BSD","dependencies":{"winston":"~0.6.2"},"devDependencies":{"sinon":"~1.6.0","mocha":"~1.8.2"},"_id":"winston-spy@0.1.0","dist":{"shasum":"a0b2a243156aee986974b615a8e366811f52d149","tarball":"https://registry.npmjs.org/winston-spy/-/winston-spy-0.1.0.tgz","integrity":"sha512-kgmFfQ7IxoZm2JSONW8UXpGObHUYR8SpZnKy53w3AJWPD2Jb01Kv9Sm8VUyoc7fmyU2w0IIXazBqdU8nK3svEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPsnXeWqRswL3oCt/grcfoJlvfaXIG4y1s2bkkkPhUogIhAN55F6R7DrlafICYYPhKcRwcWyAfJDL51PBUAQUG+R6v"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"manuelcabral","email":"manuel.cabral@gmail.com"},"maintainers":[{"name":"manuelcabral","email":"manuel.cabral@gmail.com"}]},"0.1.1":{"name":"winston-spy","version":"0.1.1","description":"Test winston logging with spies","main":"src/winston-spy.js","scripts":{"test":"mocha test/winston-spy.js"},"repository":{"type":"git","url":"git@github.com:manuelcabral/winston-sinon.git"},"keywords":["winston","testing","test","spies"],"author":{"name":"Manuel Cabral","url":"m.cabral@digisfera.pt"},"license":"BSD","dependencies":{"winston":"~0.6.2"},"devDependencies":{"sinon":"~1.6.0","mocha":"~1.8.2"},"_id":"winston-spy@0.1.1","dist":{"shasum":"608726824a857fa895857e8bbcfe3c7412ecc18b","tarball":"https://registry.npmjs.org/winston-spy/-/winston-spy-0.1.1.tgz","integrity":"sha512-dR43KHEdVehh/6c1kxsUMwQDToqBtQZ7e8alghodSV6Nm2NRsm/8W15v8tpbv76KkgmB+MBc9/Wkxs5isf405w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA0oFSNrCxs/j7RMlnvbYsweSvftaY1fg/olkT8q+Jm6AiBiLUUFjcV+2ajexTx3KzEzvvYda/U58GuKw5WVdw7UEw=="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"manuelcabral","email":"manuel.cabral@gmail.com"},"maintainers":[{"name":"manuelcabral","email":"manuel.cabral@gmail.com"}]},"0.1.2":{"name":"winston-spy","version":"0.1.2","description":"Test winston logging with spies","main":"src/winston-spy.js","scripts":{"test":"mocha test/winston-spy.js"},"repository":{"type":"git","url":"git@github.com:manuelcabral/winston-sinon.git"},"keywords":["winston","testing","test","spies"],"author":{"name":"Manuel Cabral","url":"m.cabral@digisfera.pt"},"license":"BSD","dependencies":{"winston":"~0.6.2"},"devDependencies":{"sinon":"~1.6.0","mocha":"~1.8.2"},"_id":"winston-spy@0.1.2","dist":{"shasum":"ca842360841acd98a63af5baa4a206785c8accb4","tarball":"https://registry.npmjs.org/winston-spy/-/winston-spy-0.1.2.tgz","integrity":"sha512-SQZDVBKiTrgh9UpE4HJOherh74edWFhpy7r2R7kL/23GvhGaVKhAd+qKsAesTDhP1MM+/UFSgZQIK5q7Rh8psQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGJLHCJi70SiOHsMTMgkmnT8nGQp4bcW97fq83KwVRwiAiAPPqvY9CbdatYOvLHmHvCPDyMoXFpMgNG5KMxtP1QE1Q=="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"manuelcabral","email":"manuel.cabral@gmail.com"},"maintainers":[{"name":"manuelcabral","email":"manuel.cabral@gmail.com"}]},"0.2.0":{"name":"winston-spy","version":"0.2.0","description":"Test winston logging with spies","main":"src/winston-spy.js","scripts":{"test":"mocha test/winston-spy.js"},"repository":{"type":"git","url":"git@github.com:manuelcabral/winston-sinon.git"},"keywords":["winston","testing","test","spies"],"author":{"name":"Manuel Cabral","url":"m.cabral@digisfera.pt"},"license":"BSD","dependencies":{},"devDependencies":{"sinon":"~1.6.0","mocha":"~1.8.2"},"gitHead":"966968f04f586285cb67c9e5511c1e50cbb19045","bugs":{"url":"https://github.com/manuelcabral/winston-sinon/issues"},"homepage":"https://github.com/manuelcabral/winston-sinon","_id":"winston-spy@0.2.0","_shasum":"d4fe680ba1352a0781704052d57e7509b1789c5c","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"manuelcabral","email":"m.cabral@digisfera.pt"},"maintainers":[{"name":"manuelcabral","email":"manuel.cabral@gmail.com"}],"dist":{"shasum":"d4fe680ba1352a0781704052d57e7509b1789c5c","tarball":"https://registry.npmjs.org/winston-spy/-/winston-spy-0.2.0.tgz","integrity":"sha512-StJDfSES5SAVVkZZYpFgzdQkc7sSWrbEknEzKs2jDxQk5tFyJQIDeb3NMFcq6ppagZc1SizjWW9b0i7e4Y9+Xg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdg/nRDkKimvdPud1mqe66c23kZBD0BLxOTBSrLJkVrQIgA+a/Llv/lvxeaUlFBM4otpzczVKLHFmnrraU6HN87m0="}]}}},"readme":"# winston-spy\n\nThis tiny module defines a winston transport that can be used to test winston logging with spies.\n\n# Preparations\n\nYou do have to put the winston dependency into your `package.json`. winston-spy will not work correctly without this dependency in your `package.json`.\nThis is due to the module caching caveats of the nodejs module loading. winston-spy does not install a dependency to winston, this makes sure, that\nwinston-spy is using the same module as your application (see also Modules Loading from Node Modules folders).\n\nOtherwise the used winston module would be another file and therefor it would not be the cached one used by your application and\ntherefor the SpyLogger could not be as easily used in your application.\n\n# Usage\n\nPass a function to the transport as the `spy` option. This function will be called whenever `winston.log()` is called.\n\n# Example\n\n    var winston = require('winston');\n    var sinon = require('sinon');\n    var spyLogger = require('winston-spy');\n\n    var spy = sinon.spy();\n\n    winston.remove(winston.transports.Console);\n    winston.add(winston.transports.SpyLogger, { spy: spy });\n\n    winston.log('info', testMessage, testMeta);\n    assert(spy.calledOnce);\n    assert(spy.calledWith('info', testMessage, testMeta));\n","maintainers":[{"name":"manuelcabral","email":"manuel.cabral@gmail.com"}],"time":{"modified":"2022-06-29T02:29:08.986Z","created":"2013-03-26T14:58:57.955Z","0.1.0":"2013-03-26T14:59:02.872Z","0.1.1":"2013-03-26T15:33:14.893Z","0.1.2":"2013-03-26T15:36:39.814Z","0.2.0":"2014-10-14T07:56:44.217Z"},"author":{"name":"Manuel Cabral","url":"m.cabral@digisfera.pt"},"repository":{"type":"git","url":"git@github.com:manuelcabral/winston-sinon.git"},"homepage":"https://github.com/manuelcabral/winston-sinon","keywords":["winston","testing","test","spies"],"bugs":{"url":"https://github.com/manuelcabral/winston-sinon/issues"},"license":"BSD","readmeFilename":"README.md"}