1.1.0 • Published 6 years ago

@zemnmez/macros v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

@zemnmez/macros

this repo contains some babel macros i find useful

@zemnmez/macros/log.macro

This macro produces no code unless NODE_ENV == development. It exposes a macro, log(), intended to be used like a function.

When NODE_ENV != development, the macro is functionally almost identical to console.log, except the file, line, class and method that the log was called from is prepended in light grey.

@zemnmez/macros/assert.macro

This macro produces no code unless NODE_ENV == development. It exposes a macro, assert(), indended to be used like a function.

When NODE_ENV != development, this macro is functionally almost identical to console.assert, except the file, line, class, class method and the raw code of the assertion are all printed when it fails.

1.1.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago