Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Convert xls,xlsx,ods,csv spreadsheets to JSON/CSV using command line php, built as a solution to import excel files to node js
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
orig modified: Book1.js
phpexcel modified: Book1.js
Book1.js modified: Book1.js
Book1.xls modified: Book1.js
README.md Fixed type on README. 'pice' instead of 'piece' was really bugging me.
convert.php
dopatch.txt firt commit
index.js modified: Book1.js
phpexcel-1-7-4.patch modified: Book1.js
test.js modified: Book1.js

README.md

node spreadsheet

this is a solution to read excel files in node js based on PHPExcel from phpexcel.codeplex.com php based is better then nothing

example

var spreadsheet=require('node_spreadsheet')
spreadsheet.read(__dirname+"/Book1.xls",function(obj){console.log(obj);});

output: [ [ 'phonecol', 'ansicol', 'utfcol', 'numcol', 'datecol' ] , [ '0547412345' , 'asfasd' , '\u05d2\u05d3\u05db\u05e9\u05d3\u05d2\u05e9\u05d3\u05d2' , 12312 , Sun, 10 Oct 2010 10:55:00 GMT ] ]

requirements:

this piece of software is based on php5-cli so you need to install it first. like :

sudo aptitude install php5-cli

Something went wrong with that request. Please try again.