New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

multitool

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multitool

swiss army knife of useful javascript functions

latest
Source
npmnpm
Version
0.0.2-1
Version published
Maintainers
1
Created
Source

multitool

swiss army knife of useful javascript functions

Log

LOGLEVEL=trace node examples/basic.js

basic.js

var multitool = require("multitool");
var l = new multitool.Log();
var debug = l.debug;
var trace = l.trace;

debug("debug loglevel enabled")
trace("debug loglevel enabled")

Notify

Wraps growlnotify (works on OSX with Growl installed).

node examples/notify.js

notify.js

var Hapi = require('hapi');
var options = {};

var basicHandler = function (request) {
  request.reply("hello")
};

var server = new Hapi.Server(3000, options);
server.addRoute({ method: 'GET', path: '/', handler: basicHandler });
server.start(function(){
    Multitool.Notify({
        app: "Hapi",
        title: 'examples/basic.js',
        message: "Server started on port 3000"
    });
});

FAQs

Package last updated on 03 Jan 2013

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