1.1.1 • Published 2 years ago

csv_to_json_generate_file_or_remote v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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'
})
1.1.1

2 years ago

1.1.0

2 years ago