Socket
Socket
Sign inDemoInstall

sv2json

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sv2json

A tool that allows one to convert files delimited by any particular character or break into JSON (such as CSV or TSV files)


Version published
Weekly downloads
0
Maintainers
1
Install size
2.02 kB
Created
Weekly downloads
 

Readme

Source

_sv2json

_sv2json is a simple tool to convert files delimited by certain characters/breaks into JSON files.

For example, it allows you to convert CSV or TSV (tab separated values) into JSON.

Usage

First, install _sv2json to your project:

$ npm install sv2json --save

Then, include it in your script/project:

var _sv2json = require('sv2json');

You can then use it as such:

/*
* We assume that the variable 'tsvData' contains data delimited by tabs (\t)
*/

var jsonVersionOfTsvData = _sv2json(tsvData, '\t');

Keywords

FAQs

Last updated on 06 Aug 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc