
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
sheet-parser
Advanced tools
A lightweight Node.js library for parsing CSV, XLSX, and structured data formats.
A lightweight Node.js library for parsing CSV, XLSX, and other structured data formats into usable JavaScript objects. Designed for performance and scalability, it handles large files efficiently and supports various encodings.
To install the library, run:
npm install sheet-parser
Here’s how to parse a simple CSV file:
const { parseCSV } = require('sheet-parser');
const path = require('path');
(async () => {
const filePath = path.resolve(__dirname, './sample.csv');
const data = await parseCSV(filePath); // Default delimiter: ','; Default encoding: 'utf8'
console.log(data);
})();
Input sample.csv
:
name,age,city
John,30,New York
Jane,25,Los Angeles
Output:
[
{ "name": "John", "age": "30", "city": "New York" },
{ "name": "Jane", "age": "25", "city": "Los Angeles" }
]
parseCSV
filePath
(string, required): Path to the input CSV file.delimiter
(string, optional): Character used to separate fields (default: ,
).encoding
(string, optional): File encoding (default: utf8
).Promise
that resolves to an array of objects.const data = await parseCSV('./data.csv', ',', 'utf8');
We welcome contributions to improve this library! Here's how you can help:
If you encounter any issues or have feature requests, please create an issue by following these steps:
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
A lightweight Node.js library for parsing CSV, XLSX, and structured data formats.
The npm package sheet-parser receives a total of 1 weekly downloads. As such, sheet-parser popularity was classified as not popular.
We found that sheet-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.