
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
node_spreadsheet
Advanced tools
Node spreadsheet is a module to read and write Excel and CSV files using PHPExcel from phpexcel.codeplex.com.
Thanks to Shimon Doodkin for writing the original version of this module
Original repo can be found at: https://github.com/shimondoodkin/node_spreadsheet
#What Is This? Node spreadsheet is a module to read and write Excel and CSV files using PHPExcel from phpexcel.codeplex.com.
#Installation npm install node_spreadsheet
#Requirements As this runs PHPExcel, you will need php5-cli installed. You'll also need Node.js
#Usage To read in an excel file:
var spreadsheet=require('node_spreadsheet');
var basePath = __dirname;
var inputFile = basePath + "YourFile.xls";
spreadsheet.read(inputFile, function(err, data) {
if(!err) console.log(data);
});
To read in an excel file and convert it to an object:
var spreadsheet=require('node_spreadsheet');
var basePath = __dirname;
var inputFile = basePath + "YourFile.xls";
spreadsheet.readAndConvertToObject(inputFile, function(err, data) {
/*
A CSV containing the following data:
'Address', 'City', 'State', 'Zip'
'1515 S Main St', 'Los Angeles', 'CA', '90021'
'124 N Penrose Ave', 'Someplace', 'CA', '92022'
Will become:
[
{
address: '1515 S Main St',
city: 'Los Angeles',
state: 'CA',
zip: '90021'
},
{
address: '124 N Penrose Ave',
city: 'Someplace',
state: 'CA',
zip: '92022'
}
]
*/
if(!err) console.log(data);
});
To write an excel file:
var spreadsheet=require('node_spreadsheet');
var basePath = __dirname;
var outFile = basePath + "YourFile.xls";
var data = [
['Address', 'City', 'State', 'Zip'],
['1515 S Main St', 'Los Angeles', 'CA', '90021'],
['124 N Penrose Ave', 'Someplace', 'CA', '92022']
];
spreadsheet.write(data, outFile,function(err, fileName) {
if(!err) console.log(fileName);
});
To convert an excel file:
var spreadsheet=require('node_spreadsheet');
var basePath = __dirname;
var inFile = basePath + "YourFile.csv";
var outFile = basePath + "YourFile.xlsx";
spreadsheet.convert(inFile, outFile,function(err, fileName) {
if(!err) console.log(fileName);
});
FAQs
Node spreadsheet is a module to read and write Excel and CSV files using PHPExcel from phpexcel.codeplex.com.
The npm package node_spreadsheet receives a total of 27 weekly downloads. As such, node_spreadsheet popularity was classified as not popular.
We found that node_spreadsheet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.