{"name":"winston-transport","description":"Base stream implementations for winston@3 and up.","version":"4.7.1","main":"index.js","browser":"dist/index.js","scripts":{"lint":"ESLINT_USE_FLAT_CONFIG=false eslint test/*.js index.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist","pretest":"npm run lint && npm run build","test":"nyc mocha test/*.test.js","report":"nyc report --reporter=lcov","build":"rimraf dist && babel *.js -d ./dist","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+ssh://git@github.com/winstonjs/winston-transport.git"},"keywords":["winston","transport","winston3"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/winstonjs/winston-transport/issues"},"homepage":"https://github.com/winstonjs/winston-transport#readme","dependencies":{"logform":"^2.6.1","readable-stream":"^3.6.2","triple-beam":"^1.3.0"},"devDependencies":{"@types/node":"^20.14.10","abstract-winston-transport":">=0.5.1","assume":"^2.3.0","babel-cli":"^6.26.0","babel-preset-env":"^1.7.0","deep-equal":"^2.0.5","eslint":"^9.6.0","@dabh/eslint-config-populist":"^4.4.0","mocha":"^10.6.0","nyc":"^17.0.0","rimraf":"^6.0.1","winston-compat":"^0.1.5"},"engines":{"node":">= 12.0.0"},"_id":"winston-transport@4.7.1","gitHead":"ff998e71a70d928be5d4597b33652c3a4bf1ae82","types":"./index.d.ts","_nodeVersion":"20.15.1","_npmVersion":"10.7.0","dist":{"integrity":"sha512-wQCXXVgfv/wUPOfb2x0ruxzwkcZfxcktz6JIMUaPLmcNhO4bZTwA/WtDWK74xV3F2dKu8YadrFv0qhwYjVEwhA==","shasum":"52ff1bcfe452ad89991a0aaff9c3b18e7f392569","tarball":"http://registry-npm.ywwl.com/winston-transport/download/winston-transport-4.7.1.tgz","fileCount":17,"unpackedSize":54598,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4me+U0b1mq0fj6vir037IIobXj9DusMTnCjyWQtyHVAIhAIhgHFz1OYuyRg8FBupHwVIVjNVR8aBkEpcakVXithLX"}],"size":11868,"noattachment":false,"key":"/winston-transport/-/winston-transport-4.7.1.tgz"},"_npmUser":{"name":"dabh","email":"dabh@alumni.stanford.edu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/winston-transport_4.7.1_1720644560645_0.5397406962857598"},"_hasShrinkwrap":false,"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":1720644560796,"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":1720644560796,"dist-tags":{"latest":"4.9.0"}}