zedyac-parser

1.0.0 • Public • Published

zedyac-parser

📓 ZEro Dependency Yet Another Csv PARSER. It's a pretty descriptive name if you ask me 🤓.

There are a lot of good CSV parsers out there, this one is just a simpler implementation with async behaviour and no external dependencies.

Usage:

const parser = new ZedyacParser({ separator: ',' });
await parser.parse('files/input.csv');
console.log(parser.dataObject);
await parser.writeData('files/output.csv');

output

[
  {
    firstName: 'John',
    lastName: 'Doe',
    email: 'john@doe.com',
    phoneNumber: '0123456789',
  },
  {
    firstName: 'Jane',
    lastName: 'Doe',
    email: 'jane@doe.com',
    phoneNumber: '9876543210',
  },
  {
    firstName: 'James',
    lastName: 'Bond',
    email: 'james.bond@mi6.co.uk',
    phoneNumber: '0612345678',
  },
];

Limitations and works in progress

  • [ ] - Convert it to TypeScript
  • [ ] - Allow more customization of the returned object form
  • [ ] - Add code coverage
  • [ ] - Benchmarks

Dependents (0)

Package Sidebar

Install

npm i zedyac-parser

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

8.94 kB

Total Files

10

Last publish

Collaborators

  • adrianmuntean