1.0.0 • Published 6 years ago

babel-plugin-console-with-loc v1.0.0

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

babel-plugin-console-with-loc

Build Status tested with jest styled with prettier semantic-release All Contributors

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):

akameco💻 📖 ⚠️ 🚇

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT © akameco