{"_id":"@adoyle.me/winston-transport","_rev":"1-0816c5a0c916e795c72914545a5525d8","name":"@adoyle.me/winston-transport","dist-tags":{"latest":"4.4.1"},"versions":{"4.4.1":{"name":"@adoyle.me/winston-transport","description":"Base stream implementations for winston@3 and up.","version":"4.4.1","main":"index.js","browser":"dist/index.js","scripts":{"lint":"populist config/*.js index.js","pretest":"npm run lint && npm run build","test":"nyc mocha test/*.test.js","report":"nyc report --reporter=lcov","build":"rimraf dist && babel *.js -d ./dist","prepublishOnly":"npm run build"},"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":{"logform":"^2.2.0","readable-stream":"^3.4.0","triple-beam":"^1.2.0"},"devDependencies":{"@types/node":"^14.0.13","abstract-winston-transport":">= 0.3.0","assume":"^2.2.0","babel-cli":"^6.26.0","babel-preset-env":"^1.7.0","eslint-config-populist":"^4.2.0","logform":"^2.2.0","mocha":"^8.0.1","nyc":"^15.1.0","rimraf":"^3.0.2","winston-compat":"^0.1.5"},"engines":{"node":">= 6.4.0"},"gitHead":"ccba7f005829e3e8b5eaef4399658f0e1c08a78b","_id":"@adoyle.me/winston-transport@4.4.1","_nodeVersion":"12.13.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-Zz3+cfDb3hXdtRDVjRu0O+OSc8OEO4y+8M6lnVTYOiNMifTQF1MOZgaZT5BWhpVyHucVUoAvKEKRO6eug1q7AQ==","shasum":"cdafedb7b173bda448cf259d827c40c03a7a3f7b","tarball":"https://registry.npmjs.org/@adoyle.me/winston-transport/-/winston-transport-4.4.1.tgz","fileCount":13,"unpackedSize":29828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvP1pCRA9TVsSAnZWagAAa7wP+weapgjj6+/txkIGdkaR\ne35iKMGk3+oqvkkf2TIyhkul17bR/ZeV9vXswCXRfxEy90gtnEPJEcXx8Eoz\nS6TV57JWScoWnWBPBzlA0nirD2Ld0tvfr88jahLrL0snHCni7KsNLTHYcMcP\ny5TLPwyZY/lmjwsrq1BxVYGN7JCW0RyaTtUas/bzL06xyEpDO/IIYTj6T77b\naInK0JUZU+cOxlQbsK4ZF1N0a4zjyapV9lXMdTou9jFIMYKxLi6/4a076O+c\nKdRIG+axjHXBCS6c46WeGtzcIgr8tcrcVA0hHX1s5N3KBPOMb1iQcgUqyzF9\n1b8zn8yIryylZgy2Jyg9736oNl+Dt5vQOL0uXAT7FktWUb3C2VKQgK1KXP6O\nHg0TEbFzXC8c01BVGG3JbCYIoHQsI2fPW0ky0SLtPvCfHYZmJtiLdviab8hR\n0DXZ5Q9QM73krkfETPkSeccr9JfHkDNC/oDMXBW3QhwfPizXTPliCW2M1EMd\noMObGxOTB5HKhevPuEwMwy78se7lMwFtH0rSaFojPsBDGvPQd2D5p421uUH6\nFzQkw+iumh2PgvkneuiWoFg3UTNDMD5xnbwpqdzP0kGZt1/IVbIqxvOLp2z6\nq3SkM4+gJLfQV8JzwjqXxDkuSWaNE1N/SeFTQHwK/FnOM2ezbYyYT1LNIAs6\nHkxO\r\n=ZZ7W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAt6+rMx3/YhBRfWN9GNvZAgYziUsC22z3WJmkPyfQHPAiALV8zMycaKR4qAEFzpyiwbZ6cBw8uaqI5FRPxWQKYW4Q=="}]},"_npmUser":{"name":"adoyle","email":"adoyle.h@gmail.com"},"directories":{},"maintainers":[{"name":"adoyle","email":"adoyle.h@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/winston-transport_4.4.1_1606221161277_0.3326839443350147"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-24T12:32:41.058Z","4.4.1":"2020-11-24T12:32:41.480Z","modified":"2022-04-04T11:36:33.164Z"},"maintainers":[{"name":"adoyle","email":"adoyle.h@gmail.com"}],"description":"Base stream implementations for winston@3 and up.","homepage":"https://github.com/winstonjs/winston-transport#readme","keywords":["winston","transport","winston3"],"repository":{"type":"git","url":"git+ssh://git@github.com/winstonjs/winston-transport.git"},"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"bugs":{"url":"https://github.com/winstonjs/winston-transport/issues"},"license":"MIT","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","readmeFilename":"README.md"}