trail-shimmer

2.0.0 • Public • Published

node-trail-shimmer NPM version build status Test coverage

Installation

npm install --save trail-shimmer

Usage

var http = require('http')
var shimmer = require('trail-shimmer')
// wrap http.request method
shimmer.wrap(http, 'http', 'request', function (originalRequest) {
    return function () {
        console.log('track your http.request invoke')
        return originalRequest.apply(this, arguments)
    }
})

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i trail-shimmer

Weekly Downloads

1

Version

2.0.0

License

MIT

Last publish

Collaborators

  • cattail