
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
@simuratli/react-json-csv-converter
Advanced tools
A lightweight and customizable React component that enables users to download JSON data as a CSV file with a single button click.
className
, disabled
, etc.) for customization.npm install @simuratli/react-json-csv-converter
or
yarn add @simuratli/react-json-csv-converter
import { JsonToCsvDownload } from '@simuratli/react-json-csv-converter';
const data = [
{ id: 1, name: 'Alice', age: 30 },
{ id: 2, name: 'Bob', age: 25 }
];
<JsonToCsvDownload data={data} filename="users.csv">
Export Users
</JsonToCsvDownload>;
import { JsonToCsvDownload } from '@simuratli/react-json-csv-converter';
const data = [
{ id: 1, name: 'Alice', age: 30 },
{ id: 2, name: 'Bob', age: 25 }
];
const headers = [
{ label: 'User ID', key: 'id' },
{ label: 'Full Name', key: 'name' },
{ label: 'User Age', key: 'age' }
];
<JsonToCsvDownload
data={data}
headers={headers}
filename="custom_users.csv"
className="my-custom-button"
>
Download CSV
</JsonToCsvDownload>;
Prop | Type | Description |
---|---|---|
data | object[] | Required. The JSON array to convert and download as CSV. |
headers | { label: string, key: string }[] | null | Optional. Custom headers for CSV: display label and extract from key . |
filename | string | Optional. Name of the downloaded CSV file. Default is data.csv . |
className | string | Optional. Custom CSS classes for the button. |
children | ReactNode | Optional. Button label/content. Default is "Download CSV" . |
onDownload | () => void | Optional. Callback after successful CSV download. |
...props | ButtonHTMLAttributes<HTMLButtonElement> | Optional. All standard <button> props supported. |
npm run dev
MIT ยฉ Your Name or GitHub Handle
FAQs
React json to csv converter
We found that @simuratli/react-json-csv-converter demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.