New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nark

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nark - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

34

lib/nark.js

@@ -93,3 +93,3 @@ (function () {

Nark.prototype.alert = function (text,data,callback) {
Nark.prototype.danger = function (text,data,callback) {

@@ -101,3 +101,3 @@ console.error(colors.red(text));

text:text,
type:'alerta',
type:'danger',
datails:text + data

@@ -125,2 +125,32 @@ }).catch(function (err) {

Nark.prototype.important = function (text,data,callback) {
console.log(colors.blue(text));
data = Nark._table(data);
this.Log.create({
text:text,
type:'important',
datails:text + data
}).catch(function (err) {
console.error(err);
});
var mailOptions = {
from: 'Nark <alerts@nark.com>',
to: this.reportTo,
subject: 'Nark Alert',
text: text + data,
html: text + data
};
var transporter = this.transporter;
transporter.sendMail(mailOptions,function (err,data) {
if (err)
console.error(err);
});
};
Nark._table = function (data) {

@@ -127,0 +157,0 @@

2

package.json

@@ -8,3 +8,3 @@ {

},
"version": "0.0.1",
"version": "0.0.2",
"repository": {

@@ -11,0 +11,0 @@ "type": "git",

@@ -59,3 +59,13 @@ # Nark

```
nark.error('Bad news :(');
nark.danger('Bad news :(');
```
Do you need to send additional information? nark can help you
```
nark.important('Important message with extra information',{foo:123123,bar:4234234});
```
The information will arrive to your emails like this
![]()
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