{"name":"winston-transport","description":"Base stream implementations for winston@3 and up.","version":"3.2.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.4.0","mocha":"^5.0.5","nyc":"^11.6.0","winston-compat":"0.1.0","@types/node":"^9.6.1"},"gitHead":"3c84e0614b7d1b842a41460a29920aabf363cacd","_id":"winston-transport@3.2.1","_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-WPqbdAmMK/kfWCWKM2bA1o997wWPZ0jg5NpO8JPqoaDZgCiZnFpIEddcf7Ur4UZV2sYRUdySVBWKx0+gQQ/jrg==","shasum":"5b79b294096b1a18bfe502e769491553a2cb1042","tarball":"http://registry-npm.ywwl.com/winston-transport/download/winston-transport-3.2.1.tgz","fileCount":16,"unpackedSize":41382,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa4L0jCRA9TVsSAnZWagAAJusP/isPrOeyenHoSVV3RmVo\n4IQtEqw8X/j9eK7gmM0/iPzx3/MNpB5LAh92F6gUQpC4a8nsGFyKvISgdLcH\nl7eEHlUy41BWMBkTcoiMV6y7R+1S65Y+t2p4xyOa8g0U4k0HeeRoR518+x4I\nvoFT3ZR7YIPoK9LPX2eJ23wbT7JB+Ds1JPESbOcyBmmudaoaD8dWuX2k04j8\n1ttQAd0WfkQ5onRm5I6DaelpOLPc2rHyW1Z0TyJOOQzEjZrApkYlR/fPV6lr\n+K31vA8G7b8R5uMuU9c6GYIzw2/v1vGqXUZQ1MkuaAsrfRJuJX8QYDUfhTgm\nV4gSlipuP49GX7eFNZzkp7T1h4LH+Hua5la2SM0vsEXg5jeW9KVcti2ri0UL\niotKt320rEyAXCzKSpzemjfhOMB5G+m+oVVay2rI24CfKPBIC7vghFLGqqaJ\ngtQiWMxY49xaVTcrcn+YTM1I1NofHn8q4cCwYlRp5Wiszhd840v5zyURLvPp\na+Wm6/gkPLUrLrlRXiBJ61CcCP2jsC8GSPaliokMxXng+uXaU/r2je2g6FSQ\nAAgUEZhpgGiGuTGk7T8BDikWKWvGa3sJOW7tLGeimwpaJlS1xz48T2+rVL4l\neJN9sxVFLWCoDtcXsNEfb1F2HpLX8oojDmyt6x3IPsh5rca/+BSZJ4BVkRYS\nsL21\r\n=tqwP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG1gUos/c9curYg/QqIu/ea/Dal9wQwpg0sdWNIzLsRVAiAAoxwrjm+SeEY/HPFxRb7T73dHra4cLoP/D7xuOcmU8A=="}],"size":9711,"noattachment":false,"key":"/winston-transport/-/winston-transport-3.2.1.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/winston-transport_3.2.1_1524677922944_0.5133706887232528"},"_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":1524677923032,"_cnpm_publish_time":1524677923032,"dist-tags":{"latest":"4.9.0"}}