Coder Social home page Coder Social logo

node-excel's Introduction

node-excel

把数据导成excel表格
拉取代码后
    npm install 
修改request.js 里面的options信息(自己公司的接口)
修改 index.js 里面自己想生成的excel文件名
执行npm run start 或者执行 node index.js

#支持读写Excel的node.js模块

node-xlsx: 基于Node.js解析excel文件数据及生成excel文件,仅支持xlsx格式文件;
excel-parser: 基于Node.js解析excel文件数据,支持xls及xlsx格式文件;
excel-export : 基于Node.js将数据生成导出excel文件,生成文件格式为xlsx;
node-xlrd: 基于node.js从excel文件中提取数据,仅支持xls格式文件。
我将展示通过node-xlsx提取上传上来的excel文件里的数据,以及生成新的excel文件。

利用到的模块

	http 模块 基于http.request来发起请求;
	fs 模块 基于node fs的读写模块
	promise 模块,避免callback嵌套
	querystring 模块 序列化与反序列化
	node-xlsx 模块  生成写入excel文件

#说明

	request.js 抛出的方法支持传递  每页的条数,页数(从哪页开始) ,最大页数(请求到哪一页),是否递增

node-excel's People

Contributors

awabuda avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.