Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
simple-excel-js
Advanced tools
Readme
Client-side script to easily parse / convert / write any Microsoft Excel XLSX / XML / CSV / TSV / HTML / JSON / etc formats. As for server-side solution you might want to check SimpleExcelPHP
<!doctype html>
<html>
<head>
<script type="text/javascript" src="simple-excel.js"></script>
</head>
<body>
<input type="file" id="fileInput" /><br/>
<input type="button" id="fileExport" />
<script type="text/javascript">
// read a CSV file
var csvParser = new SimpleExcel.Parser.CSV();
var fileInput = document.getElementById('fileInput');
// parse when file loaded, then print the result to console
fileInput.addEventListener('change', function (e) {
var file = e.target.files[0];
csvParser.loadFile(file, function () {
console.log(csvParser.getSheet()); // print!
});
});
// write an XLSX file
var xlsxWriter = new SimpleExcel.Writer.XLSX();
var xlsxSheet = new SimpleExcel.Sheet();
var Cell = SimpleExcel.Cell;
xlsxSheet.setRecord([
[new Cell('ID', 'TEXT'), new Cell('Nama', 'TEXT'), new Cell('Kode Wilayah', 'TEXT')],
[new Cell(1, 'NUMBER'), new Cell('Kab. Bogor', 'TEXT'), new Cell(1, 'NUMBER')],
[new Cell(2, 'NUMBER'), new Cell('Kab. Cianjur', 'TEXT'), new Cell(1, 'NUMBER')],
[new Cell(3, 'NUMBER'), new Cell('Kab. Sukabumi', 'TEXT'), new Cell(1, 'NUMBER')],
[new Cell(4, 'NUMBER'), new Cell('Kab. Tasikmalaya', 'TEXT'), new Cell(2, 'NUMBER')]
]);
xlsxWriter.insertSheet(xlsxSheet);
// export when button clicked
document.getElementById('fileExport').addEventListener('click', function () {
xlsxWriter.saveFile(); // pop! ("Save As" dialog appears)
});
</script>
</body>
</html>
GPLv2 & MIT License
Copyright © 2013 Faisalman <fyzlman@gmail.com>
FAQs
Client-side script to easily parse / convert / write any Microsoft Excel XLSX / XML / CSV / TSV / HTML / JSON / etc formats.
The npm package simple-excel-js receives a total of 40 weekly downloads. As such, simple-excel-js popularity was classified as not popular.
We found that simple-excel-js 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.