source-log

Log code source line

Usage no npm install needed!

<script type="module">
  import sourceLog from 'https://cdn.skypack.dev/source-log';
</script>

README

source-log

Log code source line

Install

npm install source-log --save
# or
pnpm add source-log
# or
yarn add source-log

Use

import {sourceLog} from 'source-log"

sourceLog("hello");

Show this log:

src/some_test.ts:10:13
hello