New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

csv_to_json_generate_file_or_remote

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csv_to_json_generate_file_or_remote

``` npm i csv_to_json_generate_file_or_remote ```


Version published
Maintainers
1
Created

Version: 1.1.1

npm i csv_to_json_generate_file_or_remote

Configure

  1. csv file to json:
parameterDescription
csv_pathpass csv file path
destinationDefault root folder. You can pass destination like json/test or json
json_file_namefile name of json file. Default file name test
// test.csv
`
"name","age","phone","test"
"Y",534534,1835434,true
"X",534534,5435355,true
`
import {csv_file_to_json_generate} from 'csv_to_json_generate_file_or_remote'

csv_file_to_json_generate({
    csv_path: 'test/test.csv',
    destination: '',
    json_file_name: 'test'
})
  1. remote file to json:
parameterDescription
urlpass csv url
destinationDefault root folder. You can pass destination like json/test or json
json_file_namefile name of json file. Default file name test
import {csv_to_json_generate_remotely} from 'csv_to_json_generate_file_or_remote'

csv_to_json_generate_remotely({
    url: 'https://www.w3schools.com/python/pandas/data.csv.txt'
    ,
    destination: '',
    json_file_name: 'test'
})

FAQs

Package last updated on 29 Apr 2023

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