https://github.com/ymzuiku/source-log
Log code source line
https://github.com/ymzuiku/source-log
Last synced: 19 days ago
JSON representation
Log code source line
- Host: GitHub
- URL: https://github.com/ymzuiku/source-log
- Owner: ymzuiku
- Created: 2021-08-05T10:41:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-05T10:49:19.000Z (over 4 years ago)
- Last Synced: 2025-03-02T00:26:50.212Z (11 months ago)
- Language: TypeScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# source-log
Log code source line
## Install
```bash
npm install source-log --save
# or
pnpm add source-log
# or
yarn add source-log
```
## Use
```ts
import {sourceLog} from 'source-log"
sourceLog("hello");
```
Show this log:
```bash
src/some_test.ts:10:13
hello
```