/csv_to_json

Primary LanguageJavaScriptMIT LicenseMIT

CSV_TO_JSON

CSV_TO_JSON is a CSV to JSON converter.

Installation

Use this command to install the package.

npm i @bharat_software_systems/csv_to_json

Usage

var { reader } = require("@bharat_software_systems/csv_to_json") // Requiring package

app.post('/api/upload', upload.single('file'), async (req, res) => {
    const data = await reader(req.file.path) // Passing file path.
    return res.json({ data });
});

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT