![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
react-native-csv
Advanced tools
react-native-csv is the fastest CSV (or delimited text) parser for React Native.
⭐️ Please support us by giving a star! Thanks! ⭐️
react-native-csv is the fastest CSV (or delimited text) parser for React Native.
react-native-csv is available on npm. It can be installed with the following command:
npm install react-native-csv --save
react-native-csv is available on yarn as well. It can be installed with the following command:
yarn add react-native-csv --save
import { readString } from 'react-native-csv';
const str = `Column 1,Column 2,Column 3,Column 4
1-1,1-2,1-3,1-4
2-1,2-2,2-3,2-4
3-1,3-2,3-3,3-4
4,5,6,7`;
const results = readString(str);
import { readRemoteFile } from 'react-native-csv';
readRemoteFile(
url,
{
complete: (results) => {
console.log('Results:', results)
}
}
);
import { jsonToCSV } from 'react-native-csv'
const jsonData = `[
{
"Column 1": "1-1",
"Column 2": "1-2",
"Column 3": "1-3",
"Column 4": "1-4"
},
{
"Column 1": "2-1",
"Column 2": "2-2",
"Column 3": "2-3",
"Column 4": "2-4"
},
{
"Column 1": "3-1",
"Column 2": "3-2",
"Column 3": "3-3",
"Column 4": "3-4"
},
{
"Column 1": 4,
"Column 2": 5,
"Column 3": 6,
"Column 4": 7
}
]`;
const results = jsonToCSV(jsonData);
See the contributing guide to learn how to contribute to the repository and the development workflow.
If you think any of the react-native-csv
can be improved, please do open a PR with any updates and submit any issues. Also, I will continue to improve this, so you might want to watch/star this repository to revisit.
We'd love to have your helping hand on contributions to react-native-csv
by forking and sending a pull request!
Your contributions are heartily ♡ welcome, recognized and appreciated. (✿◠‿◠)
How to contribute:
FAQs
react-native-csv is the fastest CSV (or delimited text) parser for React Native.
The npm package react-native-csv receives a total of 3,294 weekly downloads. As such, react-native-csv popularity was classified as popular.
We found that react-native-csv 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.