node package manager

import-csv

import-csv

Artwork by i5ting.

Deps npm GitHub license npm

Install

[sudo]npm install --save import-csv

Usages

默认使用gbk编码

var import_csv = require('import-csv')
 
import_csv('test.csv',function(err, data){
  console.log(data);
})

指定字符编码机

var import_csv = require('import-csv')
 
import_csv('test.csv',function(err, data){
  console.log(data);
}, 'gbk')

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

版本历史

  • v1.0.0 初始化版本

欢迎fork和反馈

如有建议或意见,请在issue提问或邮件

License

this repo is released under the MIT License.