gulp-excel2html

0.0.4 • Public • Published

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
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

Package Sidebar

Install

npm i gulp-excel2html

Weekly Downloads

1

Version

0.0.4

License

ISC

Last publish

Collaborators

  • del1214