connor4312 / -sv

👏 separated values

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

👏sv Build Status David

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('pets.👏sv', 'utf-8'));
  data.push({ species, name });
  writeFileSync(toCSV(data));
}

Your file might now look something like this:

species👏name
dog👏Max
cat👏Tigger

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.

About

👏 separated values

License:MIT License


Languages

Language:JavaScript 100.0%