UNPKG

@eckidevs/payfastjs

Version:

A Node.js implementation of the PayFast API.

11 lines (9 loc) 252 B
const csv = require("csvtojson"); module.exports = function(inputCSV) { return new Promise((resolve, reject) => { csv({ output: "json" }) .fromString(inputCSV) .then(resolve) .catch(() => resolve(inputCSV)); }); };