{"library":"winston-spy","type":"library","category":null,"description":"winston-spy is a small module that provides a custom Winston transport designed for testing Winston logging interactions using spy functions. It allows developers to intercept log messages and assert their content and calls within test suites. The package is currently at version 0.2.0 and has not seen active development since 2014, indicating it is abandoned. A key design choice is that winston-spy does not list winston as a direct dependency in its package.json, requiring the consuming application to install winston itself. This approach aims to ensure that winston-spy operates on the exact same winston module instance used by the application, mitigating Node.js module caching issues. However, this also means it relies on older winston APIs (winston.add, winston.remove) and is not compatible with modern winston v3.x+ versions.","language":"javascript","status":"abandoned","version":"0.2.0","tags":["javascript","winston","testing","test","spies"],"last_verified":"Wed May 27","install":[{"cmd":"npm install winston-spy","imports":["const SpyLogger = require('winston-spy');","winston.add(winston.transports.SpyLogger, { spy: mySpy });"]},{"cmd":"yarn add winston-spy","imports":[]},{"cmd":"pnpm add winston-spy","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/winston-spy","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/winston-spy/compatibility"}}