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
Log code source line
<script type="module">
import sourceLog from 'https://cdn.skypack.dev/source-log';
</script>
Log code source line
npm install source-log --save
# or
pnpm add source-log
# or
yarn add source-log
import {sourceLog} from 'source-log"
sourceLog("hello");
Show this log:
src/some_test.ts:10:13
hello