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

superlogs-loader

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superlogs-loader

webpack loader for superlogs

latest
Source
npmnpm
Version
1.7.0
Version published
Weekly downloads
7
600%
Maintainers
1
Weekly downloads
 
Created
Source

🦄 superlogs-loader

All Contributors

SuperLogs webpack loader for webpack

Superlogs is a super logical logging solution.

This package will find and replace doccomments with superlogs at build time.

Install:

$ npm install --save-dev superlogs-loader

or using yarn

$ yarn add superlogs-loader --dev

Configuration:

In your webpack.config.js:

module.exports = {
  // ...
  module: {
    rules: [
      {
        test: /\.ts?$/,
        loader: 'superlogs-loader',
        options: {
          
        }
      }
    ]
  }
}

or for razzle

module.exports = {
  // ...
  modify: (config, { target, dev }, webpack) => {
    config.module.rules.push(
      {
        test: /\.ts?$/,
        loader: 'superlogs-loader',
        options: {
          
        }
      }
    );
  }
}  

Usage

method

In your target file

/**
 * @method method description
 */

This will be replaced after build with superlogs

logs.addMethod('method description');

step

In your target file

/**
 * @step step description
 */

This will be replaced after build with superlogs

logs.addStep('step description');

data

In your target file

/**
 * @data debugVar
 */

This will be replaced after build with superlogs

logs.addData('debugVar', debugVar);

mongo

In your target file

/**
 * @mongo mongo description
 */

This will be replaced after build with superlogs

logs.addMongo('mongo description');

dispatch

In your target file

/**
 * @dispatch dispatch type
 * @payload setPayload(true)
 */

This will be replaced after build with superlogs

logs.addDispatch('dispatch description', setPayload(true));

Contributing:

Feel free to open issues to propose stuff and participate.

Pull requests are also welcome.

Licence:

MIT

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Alejandro Garcia Anglada

💻 🤔

mathiasscheffe

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Keywords

pattern

FAQs

Package last updated on 22 Jun 2021

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