babel-plugin-console-with-loc
v1.0.0
Published
babel plugin for console.log with loc
Downloads
2
Readme
babel-plugin-console-with-loc
babel plugin for console.log with loc
Install
npm:
$ npm install --save-dev babel-plugin-console-with-loc
yarn:
$ yarn add --dev babel-plugin-console-with-loc
Usage
.babelrc
{
"plugins": ["console-with-loc"]
}
Examples
console.log('hello world');
↓ ↓ ↓ ↓ ↓ ↓
console.log('{\\"start\\":{\\"line\\":1,\\"column\\":0},\\"end\\":{\\"line\\":1,\\"column\\":26}}', 'hello world');
Contributors
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
License
MIT © akameco