Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zswang/gulp-linenum
A parser plugin for gulp to replace line number.
https://github.com/zswang/gulp-linenum
Last synced: about 1 month ago
JSON representation
A parser plugin for gulp to replace line number.
- Host: GitHub
- URL: https://github.com/zswang/gulp-linenum
- Owner: zswang
- Created: 2017-08-29T08:26:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-29T08:59:20.000Z (about 7 years ago)
- Last Synced: 2024-09-14T01:51:09.512Z (2 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gulp-linenum [![Build Status](https://img.shields.io/travis/zswang/gulp-linenum/master.svg)](https://travis-ci.org/zswang/gulp-linenum) [![NPM version](https://img.shields.io/npm/v/gulp-linenum.svg)](http://badge.fury.io/js/gulp-linenum)
> Code block processing with [linenum](https://github.com/zswang/linenum).
## Installation
Install package with NPM and add it to your development dependencies:
`npm install --save-dev gulp-linenum`
## Usage
```js
var linenum = require('gulp-linenum');gulp.task('dist', function() {
return gulp.src('lib/*.js')
.pipe(linenum())
.pipe(gulp.dest('dist'));
});
```## Options
- `pattern`
pattern default `"^linenum"`
- `prefix`
prefix, default :
- `suffix`
suffix
- `offset`
offset, default 1
MIT © [zswang](http://weibo.com/zswang)