linenum

This tool will replace text pattern with the line number.

Usage no npm install needed!

<script type="module">
  import linenum from 'https://cdn.skypack.dev/linenum';
</script>

README

Line Number 代码行数

NPM version"> Build Status Coverage Status

背景

代码经过预处理后行数可能会发生变化,当我们分析问题时通常需要源代码的行号

需求场景

  • 标记执行代码所在行数。

使用

安装

$ npm i -g linenum

命令行

$ linenum app.js -o app.release.js

License

MIT © zswang