0.0.4 • Published 9 years ago

gulp-excel2html v0.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

gulp-excel2htmlnpm versionBuild Status Dependency Status devDependency Status

gulp-excel2html is a Gulp plugin to convert excel(xlsx) file to HTML

##Install

npm install --save-dev gulp-excel2html

##Usage

var excel2html = require('gulp-excel2html');

gulp.src('foo.xlsx')
	.pipe(excel2html({
		tmplFile:'src/foo_tmpl.html',
		resultFile:'result.html',
		dataHandle:function(excel){
			//handle excel data and return something
			return something;
		}
	}))
	.pipe(gulp.dest('dist'))

##API

excel2html(options)

####options

  • Type:Object
  • Required
  • hasDefault
keytyperequireddefaultsummary
tmplFilestringYesNoneThe template file path of hogan.js
resultFilestringNotresult.htmlThe out put html file name
dataHandleFunctionNotFull excel data of Arrayhandle the data parse from xlsx file and return object for hogan.js to render html