{"name":"winston-transport","description":"Base stream implementations for winston@3 and up.","version":"3.2.0","main":"index.js","scripts":{"test":"nyc mocha test/*.test.js","report":"nyc report --reporter=lcov"},"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","devDependencies":{"abstract-winston-transport":">= 0.3.0","assume":"^1.4.1","logform":"^1.4.0","mocha":"^5.0.5","nyc":"^11.6.0","winston-compat":"0.1.0","@types/node":"^9.6.1"},"gitHead":"b22b512cf25d2a0a443b665071ac44db000ce9a9","_id":"winston-transport@3.2.0","_npmVersion":"5.8.0","_nodeVersion":"8.10.0","_npmUser":{"name":"indexzero","email":"charlie.robbins@gmail.com"},"maintainers":[{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"}],"dist":{"integrity":"sha512-pS+DEChLHvvhrDAUWvq7Un4ZBHn2i+vQI8e/lI/8ADOLmExNt79E70VCIryYUP7hsImJkVHQM5zjTA4Wbb2BaA==","shasum":"a05b6ac93f02b4d7e95cf992f63ab218c18a193a","tarball":"http://registry-npm.ywwl.com/winston-transport/download/winston-transport-3.2.0.tgz","fileCount":16,"unpackedSize":41243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa3MjCCRA9TVsSAnZWagAAbJ0P/1dWqBXYXKeQ0VRmYZYQ\nTS1Z7I0O//0QoZ1ctsfORPduSSFykakKowGTEcYZ7LnOTNNYH1SGMeKDQfjB\nzK2SqwtxmckF3PIFooGE1hjolw8D7sp9nl5ZKedCdO+Bbu1GiYMS0NXxpXES\nWSO2q5bHYfB8lAdEWpcfPqDNSwSjnC3Jo65FjDscdgbwMRjKp2SW923tJqIV\nCL30riDEPxzK5gcC3U+8sZU0h31xUquByvEjWAX8zm3whHjqVskb7w0yKnV3\n4CXPMAAcTGNEVxEiUYT+WogMfcut6Tt535iZWzwASxFogp4rrJ10iBMqRoRV\n99Lfg0WfSnCTaPEfrB6sRg0s0CpnD36abzmKTBRITCaOX0jCTkyR/XId36q9\nnowwO2wW7257U4bkak8sKxyAZ8VRuu2+BSkWfY0wu98AT8sRHyfWJK2YqHhf\nplIuAfWsrmU8G0rU/NZjK7RMFJYH/7iZgdNRNmW+FZPOSJZ/WjeQI68ERKjL\nQoKkJnM0+RAMfseL7/G3xDLsp0EsXvgE/356RY4kbkVcXVLfF/L8vu3FsALZ\nZ/nxK5Kp1HGqu9BqYRQMkiJva1v4/Ah2rUbaGgAwUfLMwoPASfA8RLH9m2CA\n75P1ANjVaT6uQFnO78CDxNvhFCD+JyaxHwk5x9SK3HcqAcPicLq3X7SSlGxB\np0F9\r\n=dbdZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDC1IZttJbor1hXN0TK2NVnr2zj8EL8HBcTLRnxp2Dz1AiAYsayc7zrLwCMapE5PRHILpFZTQGsxVycyaVMa8LSt1Q=="}],"size":9645,"noattachment":false,"key":"/winston-transport/-/winston-transport-3.2.0.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/winston-transport_3.2.0_1524418753096_0.07137646264340569"},"_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":1524418753156,"_cnpm_publish_time":1524418753156,"dist-tags":{"latest":"4.9.0"}}