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