🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

shark-utils

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shark-utils

整理常用的工具

latest
npmnpm
Version
1.0.21
Version published
Maintainers
2
Created
Source

整理常用的工具

npm npm npm

使用方法

泡泡插件

单波泡泡消息

var utils = require('shark-utils');

/* 单播泡泡消息 */
utils.PoPo.send_to_user('hzjinbing', '恭喜你发送成功了').then(function(){
    console.log("发送成功");
});

群发泡泡消息

var utils = require('shark-utils');

/* 群发泡泡消息 */
utils.PoPo.send_to_users(['hzjinbing','hzzhouming'], '你好').then(function(){
    console.log("群发消息成功");
});

邮箱插件

发送邮件

var utils = require('shark-utils');
/* 发送邮件 */
utils.Mail.send_mail('hzjinbing@163.com', '测试邮件', '这个是一个测试邮件');

全局使用方法

npm install shark-utils -g

1.执行shark-utils --help,能告知当前全局的方法
2.生成angularjs template的工程结构:进入对应的项目中,然后执行shark-utils --init

FAQs

Package last updated on 21 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts