{"name":"winston-transport","description":"Base stream implementations for winston@3 and up.","version":"3.0.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.1.0","mocha":"^3.2.0","nyc":"^10.1.2","winston-compat":"0.0.1"},"gitHead":"ed9db719b4770f64641582f955ce5cce63e4705b","_id":"winston-transport@3.0.0","_shasum":"ccb2d8ee9220efa3fa55af55e11a4c77c1e64daa","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.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":{"shasum":"ccb2d8ee9220efa3fa55af55e11a4c77c1e64daa","tarball":"http://registry-npm.ywwl.com/winston-transport/download/winston-transport-3.0.0.tgz","integrity":"sha512-GALG9l/wDOW87iwyFofVPzfn0Mo9pmawyBUewWaZiO4vMLKPYCCAFEiNgJkGUfy4eHAHx/ubhCVt57sKEBUMxQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoG+c8Sceiy8Jt/CmVH4r9BRHa0kp4pHuNkCfBFhfsnwIgFOREnJcKII2JCEL5BgsHv0Jyy3UvIOry8MKf8zR+IHY="}],"size":8494,"noattachment":false,"key":"/winston-transport/-/winston-transport-3.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/winston-transport-3.0.0.tgz_1506680468149_0.7875824284274131"},"directories":{},"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":1506680469066,"_cnpm_publish_time":1506680469066,"dist-tags":{"latest":"4.9.0"}}