eyeglass-debug

    0.0.1 • Public • Published

    eyeglass-debug

    Provides a wrapper around debug to allow debugging messages within an eyeglass module.

    Usage

    @import "eyeglass-debug";
     
    @include debug("my-module", "my message");
    // debug as a mixin: 
    @include debug($namespace, $message);
     
    // debug as a function: 
    $tmp: debug($namespace, $message);

    Enabling a namespace

    By default, namespaces are disabled. You'll have to enable the namespace to see the log messages.

    via options

    var eyeglass = require("eyeglass");
    var options = eyeglass({
      debug: {
        enable: ["foo", "bar"] // "foo" and "bar" namespaces will be enabled
      }
    });

    via Sass

    @include debug-enable("foo");

    Install

    npm i eyeglass-debug

    DownloadsWeekly Downloads

    5

    Version

    0.0.1

    License

    Apache-2.0

    Last publish

    Collaborators

    • eoneill