{"name":"winston-transport","description":"Base stream implementations for winston@3 and up.","version":"4.7.0","main":"index.js","browser":"dist/index.js","scripts":{"lint":"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.3.2","readable-stream":"^3.6.0","triple-beam":"^1.3.0"},"devDependencies":{"@types/node":"^20.8.6","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":"^8.8.0","@dabh/eslint-config-populist":"^5.0.0","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^5.0.5","winston-compat":"^0.1.5"},"engines":{"node":">= 12.0.0"},"_id":"winston-transport@4.7.0","gitHead":"f4be5c72b5c8d90b0aae1690e077089116d4bb64","types":"./index.d.ts","_nodeVersion":"16.18.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-ajBj65K5I7denzer2IYW6+2bNIVqLGDHqDw3Ow8Ohh+vdW+rv4MZ6eiDvHoKhfJFZ2auyN8byXieDDJ96ViONg==","shasum":"e302e6889e6ccb7f383b926df6936a5b781bd1f0","tarball":"http://registry-npm.ywwl.com/winston-transport/download/winston-transport-4.7.0.tgz","fileCount":17,"unpackedSize":55593,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIENCNJaj66ZepOPd5WkqnLFeaxN9DqkZdDcoYHq54gOFAiAlO/0NBDb+fgrHQjz3PHto93Vqalo2SmVsjGS1d4KPsg=="}],"size":11839,"noattachment":false,"key":"/winston-transport/-/winston-transport-4.7.0.tgz"},"_npmUser":{"name":"dabh","email":"dabh@alumni.stanford.edu"},"directories":{},"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"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/winston-transport_4.7.0_1707030487024_0.3877085233191364"},"_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":1707030487269,"_cnpm_publish_time":1707030487269,"dist-tags":{"latest":"4.9.0"}}