{"name":"winston-transport","version":"4.8.1","keywords":["winston","transport","winston3"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","_id":"winston-transport@4.8.1","homepage":"https://github.com/winstonjs/winston-transport#readme","bugs":{"url":"https://github.com/winstonjs/winston-transport/issues"},"dist":{"shasum":"11a08b283bde7f510e8d36a546d3dd7b7554c19a","tarball":"http://registry-npm.ywwl.com/winston-transport/download/winston-transport-4.8.1.tgz","fileCount":17,"integrity":"sha512-yZjgYLreNHGpcWW/YhQJTOnRb8fBcopJSE6v8oWH4vVmcDKUZO0ivqU8/yjcX/+YHmmTX2HS3NF/T7LFZzoG9A==","signatures":[{"sig":"MEUCICZWA341KIoXAoxCaiubr/NvR/IlPWDaUE48rZgaN7v5AiEAt+Kd5KQIQ91t9Ahv/Gq3wIEKwoavvX6tHwtuj6ucS8M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54595,"size":11860,"noattachment":false,"key":"/winston-transport/-/winston-transport-4.8.1.tgz"},"main":"index.js","types":"./index.d.ts","browser":"dist/index.js","engines":{"node":">= 12.0.0"},"gitHead":"0ef14f6d6c502dd45e83948907fcac296e17a84f","scripts":{"lint":"ESLINT_USE_FLAT_CONFIG=false eslint test/*.js index.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist","test":"nyc mocha test/*.test.js","build":"rimraf dist && babel *.js -d ./dist","report":"nyc report --reporter=lcov","pretest":"npm run lint && npm run build","prepublishOnly":"npm run build"},"_npmUser":{"name":"dabh","email":"dabh@alumni.stanford.edu"},"repository":{"url":"git+ssh://git@github.com/winstonjs/winston-transport.git","type":"git"},"_npmVersion":"10.8.1","description":"Base stream implementations for winston@3 and up.","directories":{},"_nodeVersion":"22.4.1","dependencies":{"logform":"^2.7.0","triple-beam":"^1.3.0","readable-stream":"^4.5.2"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^17.0.0","mocha":"^10.6.0","assume":"^2.3.0","eslint":"^9.6.0","rimraf":"^6.0.1","babel-cli":"^6.26.0","deep-equal":"^2.0.5","@types/node":"^22.6.0","winston-compat":"^0.1.5","babel-preset-env":"^1.7.0","abstract-winston-transport":">=0.5.1","@dabh/eslint-config-populist":"^4.4.0"},"_npmOperationalInternal":{"tmp":"tmp/winston-transport_4.8.1_1731203900438_0.953357390267062","host":"s3://npm-registry-packages"},"readme":"# winston-transport\n\nThe base `TransportStream` implementation for `winston >= 3`. Use these to\nwrite ecosystem Transports for `winston`.\n\n## Usage\n\n``` js\nconst Transport = require('winston-transport');\nconst util = require('util');\n\n//\n// Inherit from `winston-transport` so you can take advantage\n// of the base functionality and `.exceptions.handle()`.\n//\nmodule.exports = class CustomTransport extends Transport {\n  constructor(opts) {\n    super(opts);\n\n    //\n    // Consume any custom options here. e.g.:\n    // - Connection information for databases\n    // - Authentication information for APIs (e.g. loggly, papertrail,\n    //   logentries, etc.).\n    //\n  }\n\n  log(info, callback) {\n    setImmediate(() => {\n      this.emit('logged', info);\n    });\n\n    // Perform the writing to the remote service\n\n    callback();\n  }\n};\n```\n\n## Tests\n\nTests are written with `mocha`, `nyc`, `assume`, and \n`abstract-winston-transport`. They can be run with `npm`:\n\n``` bash\nnpm test\n```\n\n##### Author: [Charlie Robbins](https://github.com/indexzero)\n##### LICENSE: MIT\n","publish_time":1731203900612,"maintainers":[{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"dabh","email":"dabh@alumni.stanford.edu"},{"name":"w-b-t","email":"wbt@alumni.cmu.edu"},{"name":"maverick18722","email":"jonathonterry93@gmail.com"}],"_cnpm_publish_time":1731203900612,"dist-tags":{"latest":"4.9.0"}}