🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

jsongrid

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsongrid

Functions works with convertion csv-tab-like grids in json and OBRATNO

1.0.2
latest
Source
npm
Version published
Weekly downloads
17
-48.48%
Maintainers
1
Weekly downloads
 
Created
Source

jsongrid

Functions works with convertion csv-tab-like grids in json and OBRATNO

"\t \n" csv-like txt file

data.txt

categoryId	subjectId	subject	category	distribution	distributionType	flex	options
1	1	Domain name	Registration&renewal	1	client
2	1	Domain name	Various troubleshooting	3	client
3	2	Email	New email account	4	office
4	2	Email	Change/recover email password	8	office
import { csv2grid, grid2objects } from 'jsongrid';
const data = grid2objects(
  csv2grid(
    require('raw!./data.txt'),
  ),
)

console.log(data[0].subject); // 'Domain name'

Keywords

json

FAQs

Package last updated on 05 Apr 2018

Did you know?

Socket

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