{"name":"winston-transport","description":"Base stream implementations for winston@3 and up.","version":"4.1.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":{"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":"7242dbb8948887a123bd0ad3d33e6dc38a7012a8","_id":"winston-transport@4.1.0","_npmVersion":"5.10.0","_nodeVersion":"8.6.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-rNMfXfGfTyiOrAJ9KLLy0nlow98NyD0oNCOSnP3jnNVHoKsJGLDsa8BaOH+ftKDR5pZKJMBhbQNEft7Vr+dJLw==","shasum":"4eedb6e3ad79bdd8a682e380abebd7b80951e797","tarball":"http://registry-npm.ywwl.com/winston-transport/download/winston-transport-4.1.0.tgz","fileCount":19,"unpackedSize":47757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbD/+XCRA9TVsSAnZWagAAUlwP/0HYnlm+SGc8j11cyRst\nuX4jGkrwL/DEK1GH+tUNKVKKfNXseEgMywZw4TG6JaqLy5Ak2JspPecoC/g/\nb3T7kCLt/LL/lqlIk0iwovtseh9aFqYrAhnhcr0iIKEE0B+RViGsz0WeZZZH\nXX4itiWR/T62dGnNq4TqxXdtCN5VDHbQJTL6fXMK74tEtUzVIUf/3xNRSr6i\nK9ZkGoJUqmW7s0faw3HyxkSa1qiEshxrQ5kW/W3DdJS8c20m4CtNe85M89ho\nypD7yDwzoUGgQMqOVL4aMHEx24tfPl6sY04ywPa4xgKBB/LDvJGttTgdef75\ncduD6zBBbOmtSv6GuajdXBpMpm+DBrxBB8lc0AaNLZ61FQlXanQVYS0YaJZs\nFzXnHuXiVqf5XKIOwhYirALXWeoCptNYgBaW6no+qyh70g3y6ZnCzez2A543\neR39IZQvCKy0f7rwkCScQ49JlHCxAZ2M909IdEK/LrhceeF9Hg0TryIKiGwj\nXhD911UKUH7y84rgfNIuKWyOjUR3PVGOZccuqhA0A8VFM3h/Dsge8AZUTCKb\npsXG1iRgAf5WwKCjQVAIBESP3DkUQrWGbYRkOR5OfPDQLHw59iDycDUR07n0\nmjq9PEyJ/ZG5o+xaqGHGdr8OLBjrs7vWWLVvtV1dvBif+R4NAWKTVPiv3d1T\nkULw\r\n=eYvN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDj0yqyp2yq754MkYFuKC9T4yMNT41LHyzYNS+3kMqD9QIhAJMwhoXwUJigBwFgrG+Bne/CrFKWbEiA2fiisXOKa7pm"}],"size":10888,"noattachment":false,"key":"/winston-transport/-/winston-transport-4.1.0.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/winston-transport_4.1.0_1527775126573_0.5548332302874595"},"_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":1527775126661,"_cnpm_publish_time":1527775126661,"dist-tags":{"latest":"4.9.0"}}