https://github.com/oxyc/gulp-striphtml
Gulp plugin to strip away HTML and keep JavaScript so that you can eg. lint inline javascript.
https://github.com/oxyc/gulp-striphtml
Last synced: about 1 year ago
JSON representation
Gulp plugin to strip away HTML and keep JavaScript so that you can eg. lint inline javascript.
- Host: GitHub
- URL: https://github.com/oxyc/gulp-striphtml
- Owner: oxyc
- License: mit
- Created: 2014-11-19T21:14:19.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-19T22:11:06.000Z (over 11 years ago)
- Last Synced: 2025-03-11T12:11:30.119Z (over 1 year ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
gulp-striphtml [](http://travis-ci.org/oxyc/gulp-striphtml) [](http://badge.fury.io/js/gulp-striphtml)
=================
> Strip away HTML and keep JavaScript so that you can eg. lint inline javascript.
## Install
npm install gulp-striphtml --save-dev
## Usage
```js
var jshint = require('gulp-jshint');
var striphtml = require('gulp-striphtml');
var gulp = require('gulp');
gulp.task('lint', function() {
return gulp.src('./*.html')
.pipe(striphtml())
.pipe(jshint())
.pipe(jshint.reporter('default'));
});
```
## Release History
* 2014-11-20 v0.0.1 Initial version.
## License
MIT