Socket
Socket
Sign inDemoInstall

jsongrid

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jsongrid

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


Version published
Weekly downloads
21
decreased by-41.67%
Maintainers
1
Install size
1.43 MB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 05 Apr 2018

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