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

herehere

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

herehere

A super simple JS debug module

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

herehere

Simple JavaScript debug function

Using herehere

To install, run npm install herehere --save

Then do something like this:

//get the library
var herehere = require('herehere');

//make a new herehere
var here = herehere();

function iNeedDebugging(){
  //call here whenever you want to know if this function ran. Its basically a counter.
  here();
  //really bad code goes here
  ...
}

for(var i=0; i<1234; i++){
  iNeedDebugging();
}

//now here has been console.logging the whole time, and it also returns the current count
//so you could do something stupid like this
if(here() === 1234){
  //then it ran all those times. pretty great.
}
Contributing

Fork or clone the repository. Assuming node is installed, just run npm install from the main directory

To test once, run gulp test To test continuously, run gulp tdd

License - MIT

Keywords

FAQs

Package last updated on 19 Jun 2015

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

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