{"_id":"@bachman-dev/pino-discord-transport","_rev":"11-b6c613584d8844b5f76b427c7dfe3320","name":"@bachman-dev/pino-discord-transport","dist-tags":{"latest":"0.3.0"},"versions":{"0.2.0":{"name":"@bachman-dev/pino-discord-transport","version":"0.2.0","keywords":[],"author":{"name":"Collin Bachman","email":"collin.r68zdn9d@bachman.dev"},"license":"MIT","_id":"@bachman-dev/pino-discord-transport@0.2.0","maintainers":[{"name":"bachmacintosh","email":"npm@bachmac.com"}],"homepage":"https://github.com/bachman-dev/pino-discord-transport#readme","bugs":{"url":"https://github.com/bachman-dev/pino-discord-transport/issues"},"dist":{"shasum":"8e9aabcce8cd0d8669e19a8052b97b11d09dc89d","tarball":"https://registry.npmjs.org/@bachman-dev/pino-discord-transport/-/pino-discord-transport-0.2.0.tgz","fileCount":5,"integrity":"sha512-dMUNhQ7qV+VLip35CD9GBOml7SaG+vZmRfv60yzCgo/y0fUwFg5dEBSjzLV4XBLfB+UddHuhiXsj0yFyYQ/03g==","signatures":[{"sig":"MEYCIQDJEAB+NZPN+dyW1rujvAczOQQ3XTaOcB5bNqm8nIe/NgIhAMbauKheFKcvtr9PmsCgb7lxtgmOz9v6izkd58KCdDfH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bachman-dev%2fpino-discord-transport@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":6125},"main":"./dist/index.js","type":"module","_from":"file:bachman-dev-pino-discord-transport-0.2.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"scripts":{"lint":"eslint . && prettier --check .","build":"tsup --dts --format esm src/index.ts","lint:fix":"eslint --fix . && prettier --write ."},"_npmUser":{"name":"bachmacintosh","email":"npm@bachmac.com"},"_resolved":"/tmp/fbaaea25015fd94fa7371afaeff2e18d/bachman-dev-pino-discord-transport-0.2.0.tgz","_integrity":"sha512-dMUNhQ7qV+VLip35CD9GBOml7SaG+vZmRfv60yzCgo/y0fUwFg5dEBSjzLV4XBLfB+UddHuhiXsj0yFyYQ/03g==","repository":{"url":"git+https://github.com/bachman-dev/pino-discord-transport.git","type":"git"},"_npmVersion":"10.8.2","description":"A pino transport that sends a log entry to a Discord webhook","directories":{},"_nodeVersion":"20.17.0","dependencies":{"discord-api-types":"0.37.100","pino-abstract-transport":"2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"8.2.4","eslint":"9.10.0","prettier":"3.3.3","@eslint/js":"9.10.0","typescript":"5.5.4","@types/node":"20.16.5","typescript-eslint":"8.4.0","eslint-config-prettier":"9.1.0","@bachman-dev/eslint-config":"1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/pino-discord-transport_0.2.0_1726052121787_0.5705574753072251","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"@bachman-dev/pino-discord-transport","version":"0.3.0","author":{"name":"Collin Bachman","email":"collin.r68zdn9d@bachman.dev"},"description":"A pino transport that sends a log entry to a Discord webhook","keywords":[],"repository":{"type":"git","url":"git+https://github.com/bachman-dev/pino-discord-transport.git"},"license":"MIT","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"devDependencies":{"@bachman-dev/eslint-config":"1.0.0","@eslint/js":"9.10.0","@types/node":"20.16.5","eslint":"9.10.0","eslint-config-prettier":"9.1.0","prettier":"3.3.3","tsup":"8.2.4","typescript":"5.5.4","typescript-eslint":"8.4.0"},"dependencies":{"discord-api-types":"0.37.100","pino-abstract-transport":"2.0.0"},"scripts":{"build":"tsup --dts --format esm src/index.ts","lint":"eslint . && prettier --check .","lint:fix":"eslint --fix . && prettier --write ."},"_id":"@bachman-dev/pino-discord-transport@0.3.0","bugs":{"url":"https://github.com/bachman-dev/pino-discord-transport/issues"},"homepage":"https://github.com/bachman-dev/pino-discord-transport#readme","_integrity":"sha512-e79DtgfUAzndDOqHLyXQyQFsgZgyKWnsZdMN/yahZ5iFV1F8Aq/POJVx9Oqzjp44/W2pHcDYawerIXsL0V3RrQ==","_resolved":"/tmp/8e9c18fe867ce86d26d543fa3ebe0298/bachman-dev-pino-discord-transport-0.3.0.tgz","_from":"file:bachman-dev-pino-discord-transport-0.3.0.tgz","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-e79DtgfUAzndDOqHLyXQyQFsgZgyKWnsZdMN/yahZ5iFV1F8Aq/POJVx9Oqzjp44/W2pHcDYawerIXsL0V3RrQ==","shasum":"19786e176c2f05dee55bd9baca62839d5e613107","tarball":"https://registry.npmjs.org/@bachman-dev/pino-discord-transport/-/pino-discord-transport-0.3.0.tgz","fileCount":5,"unpackedSize":6724,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bachman-dev%2fpino-discord-transport@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBGVQkqnLf8G5Wz8cjnp8+J8zHCa3CoV3JuGZutoTor6AiEAivHtFwx46XwJE31I0RZAMPeZH4dqsW6YBT57lhw+b3U="}]},"_npmUser":{"name":"bachmacintosh","email":"npm@bachmac.com"},"directories":{},"maintainers":[{"name":"bachmacintosh","email":"npm@bachmac.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pino-discord-transport_0.3.0_1726126105853_0.7577176878655298"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-11T10:13:17.871Z","modified":"2024-09-12T07:28:26.470Z","0.1.0":"2024-09-11T10:13:18.157Z","0.1.1":"2024-09-11T10:28:21.126Z","0.1.2":"2024-09-11T10:33:36.722Z","0.1.3":"2024-09-11T10:35:06.620Z","0.1.4":"2024-09-11T10:40:08.408Z","0.2.0":"2024-09-11T10:55:21.945Z","0.3.0":"2024-09-12T07:28:26.036Z"},"bugs":{"url":"https://github.com/bachman-dev/pino-discord-transport/issues"},"author":{"name":"Collin Bachman","email":"collin.r68zdn9d@bachman.dev"},"license":"MIT","homepage":"https://github.com/bachman-dev/pino-discord-transport#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/bachman-dev/pino-discord-transport.git"},"description":"A pino transport that sends a log entry to a Discord webhook","maintainers":[{"name":"bachmacintosh","email":"npm@bachmac.com"}],"readme":"# @bachman-dev/pino-discord-transport\n\nUse this transport with pino to send logs to a Discord webhook\n\n## Usage\n\n```shell\npnpm install @bachman-dev/pino-discord-transport\n```\n\nIn your project:\n\n```ts\npino({\n  transport: {\n    targets: [\n      {\n        target: \"pino/file\",\n        options: {\n          // Write to STDOUT\n          destination: 1,\n        },\n      },\n      {\n        level: \"warn\",\n        target: \"@bachman-dev/pino-discord-transport\",\n        options: {\n          webhookUrl: process.env.DISCORD_WEBHOOK_URL,\n          // optionally mention a user in the message\n          messageId: process.env.DISCORD_WEBHOOK_MENTION_ID,\n        },\n      },\n    ],\n  },\n});\n```\n","readmeFilename":"README.md"}