scope.macro

1.0.0 • Public • Published

scope.macro

Babel Macro

This is a babel-plugin-macros macro for babel-plugin-console.

Please see those projects for more information.

Installation

This module is distributed via npm which is bundled with node and should be installed as one of your project's devDependencies:

npm install --save-dev scope.macro

You'll also need to install and configure babel-plugin-macros if you haven't already.

Usage

Once you've configured babel-plugin-macros you can import/require scope.macro. For example:

import scope from 'scope.macro'
 
function add100(a) {
  const oneHundred = 100
  scope('Add 100 to another number')
  return add(a, oneHundred)
}
 
function add(a, b) {
  return a + b
}

Dependents (2)

Package Sidebar

Install

npm i scope.macro

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • kentcdodds