{"name":"winston-transport","description":"Base stream implementations for winston@3 and up.","version":"4.5.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":"^17.0.15","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":"^9.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","winston-compat":"^0.1.5"},"engines":{"node":">= 6.4.0"},"types":"./index.d.ts","gitHead":"e4a6ce1a0b788d4fe56b4be94c30a3bebe96c2e2","_id":"winston-transport@4.5.0","_nodeVersion":"14.19.0","_npmVersion":"8.4.1","dist":{"integrity":"sha512-YpZzcUzBedhlTAfJg6vJDlyEai/IFMIVcaEZZyl3UXIl4gmqRpU7AE89AHLkbzLUsv0NVmw7ts+iztqKxxPW1Q==","shasum":"6e7b0dd04d393171ed5e4e4905db265f7ab384fa","tarball":"http://registry-npm.ywwl.com/winston-transport/download/winston-transport-4.5.0.tgz","fileCount":15,"unpackedSize":54849,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/su7CRA9TVsSAnZWagAAU/EQAJrqD7qA37GDlLhyIpDe\nz1T1XfHJKoIGxaGLk4A5dpy8KvZdU17PRVB64bI4QK/OMHESDluWjQRtzZEl\n3n528FP91fJeSIvq01YNmggA9RVi9dL2u20RPZVf8p0vBG71VkQJM2Gr+TLN\nuztbQSJsXkvIA5VJAdQA7RTn9moMJJdxydmcgch5BiBAuSWKwoDsaU1qswR4\nq1zcXCohSFNPU5GEvZaMnVSr2Qri6x54nrhU9qVtAh7HrpCqa9TEIU751c1e\nC0boOav9AJZvw7UK8JfU3wUbn6DjybczczxkMr1eKI7rFVVDc1HlUY7JrIZO\nAtTx2f2ROdFnWyfzwvUuO/Ig1PPUyQInXn8ncfVC1Z6Rc5Rtp+0dJWCAUL47\nPvBDp39NWk6HR7b83Xol8vKtdbR0IOErcvrzgcENDhrf2lxvRLnojtD2vtGc\nyzIqeMX0+c4xAjR512NndDB/KJs43rDuMEX+bUc+k8If05u+ACbUUd+n/dqY\ns1kd3FuUdR95nyGasvvisyJKf2AKhtZ/cZa0eZFv0WipK/oj7qf2RMZQSt7s\nJas5HAUxgbXPKJwfUPEcdCp29RHqHTT3oXpsmNaPs6xa1qlVKZ63yOUWcuig\nelePXxYQDf1Hw99+9QEK9x6SaPUtQf3TkV25ibf9nK4RBS3FScQIBvEO+3Cw\na4Qb\r\n=COj8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDORlLEWxFqpLkflWJJMLz1LUmcMIGe4AplkTTVUpll+gIgTnB+8GkVkrnE7CI6SiPeb6CFc82K01wfcnzjDqSo84g="}],"size":11641,"noattachment":false,"key":"/winston-transport/-/winston-transport-4.5.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"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/winston-transport_4.5.0_1644088251056_0.8173577961048712"},"_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":1644088251196,"_cnpm_publish_time":1644088251196,"dist-tags":{"latest":"4.9.0"}}