Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

winston-telegram

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-telegram - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

9

lib/winston-telegram.js

@@ -25,2 +25,5 @@ /*

this.chatid = options.chatid;
this.level = options.level || 'info';
this.unique = options.unique || false;
this.silent = options.silent || false;
};

@@ -48,5 +51,5 @@

var self = this;
if (this.silent) {
return callback && callback(null, true);
}
if (this.silent) return callback(null, true);
if (this.unique && this.level != level) return callback(null, true);
request({

@@ -53,0 +56,0 @@ url : 'https://api.telegram.org/bot'+this.token+'/sendMessage',

{
"name": "winston-telegram",
"description": "A Telegram transport for winston",
"version": "0.1.0",
"author": "Ivan Marban",
"repository": {
"type": "git",
"url": "http://github.com/ivanmarban/winston-telegram.git"
},
"keywords": ["logging",
"sysadmin",
"tools",
"winston",
"telegram",
"bot"],
"dependencies": {
"request": "^2.65.0"
},
"devDependencies": {
"winston": ""
},
"peerDependencies": {
"winston": "",
"vows": ""
},
"main": "./lib/winston-telegram",
"scripts": { "test": "vows test/*test.js --spec" },
"engines": {
"node": ">= 0.10.0"
},
"license": "MIT"
}
"name": "winston-telegram",
"description": "A Telegram transport for winston",
"version": "0.2.0",
"author": "Ivan Marban",
"repository": {
"type": "git",
"url": "http://github.com/ivanmarban/winston-telegram.git"
},
"keywords": [
"logging",
"sysadmin",
"tools",
"winston",
"telegram",
"bot"
],
"dependencies": {
"request": "^2.69.0"
},
"devDependencies": {
"winston": ""
},
"peerDependencies": {
"winston": "",
"vows": ""
},
"main": "./lib/winston-telegram",
"scripts": {
"test": "vows test/*test.js --spec"
},
"engines": {
"node": ">= 0.10.0"
},
"license": "MIT"
}
# winston-telegram
[![NPM](https://nodei.co/npm/winston-telegram.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/winston-telegram/)
A [Telegram][0] transport for [winston][1].

@@ -29,4 +31,8 @@

* __chatid:__ The chatid you want to send to. *[required]*
* __level:__ Level of messages that this transport should log. *[optional]* *[default info]*
* __unique:__ Whether to log only the declared level and none above. *[boolean]* *[optional]*
* __silent:__ Whether to suppress output. *[boolean]* *[optional]*
[0]: https://telegram.org/
[1]: https://github.com/flatiron/winston
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc