https://github.com/zswang/linenum
This tool will replace text "^linenum" with the line number.
https://github.com/zswang/linenum
Last synced: about 1 year ago
JSON representation
This tool will replace text "^linenum" with the line number.
- Host: GitHub
- URL: https://github.com/zswang/linenum
- Owner: zswang
- Created: 2016-09-19T08:08:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-21T12:49:50.000Z (almost 9 years ago)
- Last Synced: 2025-01-24T09:41:35.853Z (over 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Line Number 代码行数
-------
# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url]
## 背景
代码经过预处理后行数可能会发生变化,当我们分析问题时通常需要源代码的行号
### 需求场景
* 标记执行代码所在行数。
## 使用
### 安装
```bash
$ npm i -g linenum
```
### 命令行
```bash
$ linenum app.js -o app.release.js
```
## License
MIT © [zswang](http://weibo.com/zswang)
[npm-url]: https://npmjs.org/package/linenum
[npm-image]: https://badge.fury.io/js/linenum.svg
[travis-url]: https://travis-ci.org/zswang/linenum
[travis-image]: https://travis-ci.org/zswang/linenum.svg?branch=master
[coverage-url]: https://coveralls.io/github/zswang/linenum?branch=master
[coverage-image]: https://coveralls.io/repos/zswang/linenum/badge.svg?branch=master&service=github