Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/connor4312/-sv
๐ separated values
https://github.com/connor4312/-sv
Last synced: about 1 month ago
JSON representation
๐ separated values
- Host: GitHub
- URL: https://github.com/connor4312/-sv
- Owner: connor4312
- License: mit
- Created: 2018-12-01T05:55:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-01T06:18:19.000Z (about 6 years ago)
- Last Synced: 2024-10-25T22:21:27.074Z (about 2 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐sv [![Build Status](https://travis-ci.org/connor4312/-sv.svg?branch=master)](https://travis-ci.org/connor4312/-sv) ![David](https://img.shields.io/david/connor4312/-sv.svg) ![](https://img.shields.io/github/issues-raw/connor4312/-sv.svg) ![](https://img.shields.io/npm/l/clap-separated-values.svg) ![](https://img.shields.io/npm/v/clap-separated-values.svg) ![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)
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:
```js
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](https://www.npmjs.com/package/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.