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

hops-debug

Package Overview
Dependencies
Maintainers
5
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hops-debug

Hops debug wrapper

  • 16.0.0-nightly.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
53
increased by2550%
Maintainers
5
Weekly downloads
 
Created
Source

Hops Debug

npm

Please see the main Hops Readme for general information and a Getting Started Guide.

This package proxies the debug package from npm and makes it available for server- and client-code.

Read more about how we are using debug in Hops here.

Installation

Add this package as a dependency to your project:

npm install --save hops-debug

If you don't already have an existing Hops project read this section on how to set up your first Hops project.

Usage

import / require this package to create a debugger:

import debugFactory from 'hops-debug';

const debug = debugFactory('my-tag');

debug('something I want to log: %s', 'here is a string');

To see the debug output you can start your application with the environment variable DEBUG=my-tag set on the command line.
To see the debug output in the browser console you can set the cookie hops_debug to my-tag.

FAQs

Package last updated on 16 Feb 2022

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