JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 34
  • Score
    100M100P100Q61284F
  • License ISC

javascript console.log checker for your commits

Package Exports

  • console-log-checker

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (console-log-checker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

console-log-checker

The main goal for this package is to be used with git hooks like pre-commit or pre-push to prevend console.log debugging in your code.

We recommend to use this package with husky.

How to use

  1. Install console-log-checker and husky
$ npm install --save-dev husky console-log-checker
  1. Add console-log-checker on your package.json scripts:
  "scripts": {
    "log-check": "console-log-checker",
  },
  1. Add husky hook on your package.json:
  "husky": {
    "hooks": {
      "pre-commit": "log-checker"
    }
  },
  1. Init husky:
$ npx husky init

You are ready to go!