{"name":"winston-transport","description":"Base stream implementations for winston@3 and up.","version":"4.2.0","main":"index.js","scripts":{"lint":"populist config/*.js index.js","pretest":"npm run lint","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","dependencies":{"readable-stream":"^2.3.6","triple-beam":"^1.2.0"},"devDependencies":{"@types/node":"^10.1.4","abstract-winston-transport":">= 0.3.0","assume":"^2.0.1","eslint-config-populist":"^4.1.0","logform":"^1.4.0","mocha":"^5.0.5","nyc":"^11.6.0","winston-compat":"0.1.0"},"engines":{"node":">= 6.4.0"},"gitHead":"47babab719bdddadf836ddd96fdf20b66431174c","_id":"winston-transport@4.2.0","_npmVersion":"5.10.0","_nodeVersion":"10.3.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-0R1bvFqxSlK/ZKTH86nymOuKv/cT1PQBMuDdA7k7f0S9fM44dNH6bXnuxwXPrN8lefJgtZq08BKdyZ0DZIy/rg==","shasum":"a20be89edf2ea2ca39ba25f3e50344d73e6520e5","tarball":"http://registry-npm.ywwl.com/winston-transport/download/winston-transport-4.2.0.tgz","fileCount":19,"unpackedSize":52692,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbHz6DCRA9TVsSAnZWagAAAxcP/ikDWbryuq3XeoTPD1YO\nz5GoZK6gnwy166+q3KHznXS6XT/6g4/dVJzG55fq1aGu8JHRfTKMOAsiXEZu\nE0wcV4urOnjORurJ0rFrv88ZxkFJOMB3VScb70J0zAFYF0cV6YAdXLPG/Wbg\neBmxQFFGNhtu/RxquRn71iGvrOk6oAJMRMBlKHEfldOdTH6sxaFfrrGyfKbZ\nAiH8jh28Bva+JvK2cJBsr2jNiHSA2kWPv3cr6ePGpkx6xIZuF21j0s98A6Ky\nAcfKWo09ESCrZTjVSG5X4W2qDpGeAx580JAHqJM83YesO4KxmYEPYT4UpNJl\njaGCLjN5gO/LqeVIFbymDVrV1EO3mWz4HFxp8cK07LGzaDVFaeGK63CUJYbE\n+udYm6Aj1hDpeL9n0raa47WaI+UCAuDW+34FEsc1bKIaJ7PAHn/V4A+VK1Ka\nm9/qoX4wQjjF+2w3u5ewEndOcrbIr6VS0op7Ugz+IciCR6J4t+kv7vTIhpQ2\nFCg+uZOTKC32Effdt3x4v9H+o3eUfhAYacf8VIhwy8AWc0aikXiDwQLgC+0L\nryW94NTmGkAksbdEZtQx62GWssFsz3Pima4B8ZUFjjN0SFDefQzHFg+HYCdR\n+MHlWgvpXVYn2lFbtpa2pT+IhBd3MP29VdMqDOUUDaFR/B7rL/bouUl+teNd\n2wH+\r\n=UQ2B\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBKlYqVeDc1JpMlGFB+SzD9YpIXlp8VsccajU/15Y+2QIhALvDA6U8cd3tqYtONI89BMwibW6E88Qsk6Noi9Me2WXy"}],"size":11732,"noattachment":false,"key":"/winston-transport/-/winston-transport-4.2.0.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/winston-transport_4.2.0_1528774274395_0.5742983333370337"},"_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":1528774274518,"_cnpm_publish_time":1528774274518,"dist-tags":{"latest":"4.9.0"}}