express-middleware-csv

1.0.0 • Public • Published

Express导出csv中间件 支持中文

安装

npm install express-middleware-csv

使用

let app = require('express');
let csv = require('express-middleware-csv');
app.use(csv());

app.get('/',function(req,res){
    res.csv('demo.csv',['项目','性别'],[['张三','男'],['李四','女']]);
});

Readme

Keywords

Package Sidebar

Install

npm i express-middleware-csv

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • imbooo