1.0.0 • Published 5 years ago

clap-separated-values v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

👏sv

Delimiting terms with 👏 is set to be the next Big Thing in software development. Everyone is doing it. Get in on the action with this npm package.

npm install --save clap-separated-values

Now, you can serialize and deserialize all your critical data safely. Take a look at this pet store database implementation:

const { readFileSync, writeFileSync } = require('fs');
const { fromCSV, toCSV } = require('clap-separated-values');

function addPet(species, name) {
  const data = fromCSV(readFileSync('users.csv', 'utf-8'));
  data.push({ species, name });
  writeFileSync(toCSV(data));
}

All PRs accepted.

FAQ

Q: Why not use csv with a custom delimiter?

Why would you do such a thing?

Q: Does this support blockchain?

Yes

Q: Why?

It's important to stay on the bleeding edge of tech.

1.0.0

5 years ago