README
Line Number 代码行数
NPM version">

背景
代码经过预处理后行数可能会发生变化,当我们分析问题时通常需要源代码的行号
需求场景
- 标记执行代码所在行数。
使用
安装
$ npm i -g linenum
命令行
$ linenum app.js -o app.release.js
License
MIT © zswang
This tool will replace text pattern with the line number.
<script type="module">
import linenum from 'https://cdn.skypack.dev/linenum';
</script>
代码经过预处理后行数可能会发生变化,当我们分析问题时通常需要源代码的行号
$ npm i -g linenum
$ linenum app.js -o app.release.js
MIT © zswang