Skip to content

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

Notifications You must be signed in to change notification settings

del1214/gulp-excel2html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-excel2htmlnpm version Build 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
key type required default summary
tmplFile string Yes None The template file path of hogan.js
resultFile string Not result.html The out put html file name
dataHandle Function Not Full excel data of Array handle the data parse from xlsx file and return object for hogan.js to render html

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published