{"name":"winston-transport","description":"Base stream implementations for winston@3 and up.","version":"3.0.1","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":"629411406b8213713d20435f8190df70896272ff","_id":"winston-transport@3.0.1","_shasum":"8008b15eef5660c4fb3fa094d58ccbd08528c58d","_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":"8008b15eef5660c4fb3fa094d58ccbd08528c58d","tarball":"http://registry-npm.ywwl.com/winston-transport/download/winston-transport-3.0.1.tgz","integrity":"sha512-8WfM3OhW/JV5njKnK/ZhjHovyBZJFchwfnnTu7xrwGUev9uEQZ3/F+UzB3vMEB9eCNgZY89//ukKuTXcjySsMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICvfMLmUc76scGyhbk2OOt939qQSLEN/m475Ye8uF2qQAiEAh7dC3iXHjIa8s8YNpZkwXNiR4C548XFV6A+Jhs0gywg="}],"size":8565,"noattachment":false,"key":"/winston-transport/-/winston-transport-3.0.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/winston-transport-3.0.1.tgz_1506913024395_0.6682442547753453"},"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":1506913025356,"_cnpm_publish_time":1506913025356,"dist-tags":{"latest":"4.9.0"}}